summaryrefslogtreecommitdiffstats
path: root/vncterm
diff options
context:
space:
mode:
Diffstat (limited to 'vncterm')
-rw-r--r--vncterm/VNCommand.c2
-rw-r--r--vncterm/VNConsole.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/vncterm/VNCommand.c b/vncterm/VNCommand.c
index fc07bdb..d53605a 100644
--- a/vncterm/VNCommand.c
+++ b/vncterm/VNCommand.c
@@ -1,3 +1,5 @@
+#define _BSD_SOURCE
+#define _POSIX_SOURCE
#include "VNConsole.h"
#include "vga.h"
#ifdef LIBVNCSERVER_HAVE_FCNTL_H
diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c
index ec3002f..b25c4bd 100644
--- a/vncterm/VNConsole.c
+++ b/vncterm/VNConsole.c
@@ -24,7 +24,6 @@ unsigned char colourMap16[16*3]={
void MakeColourMap16(vncConsolePtr c)
{
- int i,j;
rfbColourMap* colourMap=&(c->screen->colourMap);
if(colourMap->count)
free(colourMap->data.bytes);