contrib: vncserver: fix compilation outside of windows

This commit is contained in:
Rafaël Carré 2013-07-11 22:30:44 +02:00
parent a06f46ed0d
commit 7d4c5433a7
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- vncserver/libvncclient/rfbproto.c.orig 2013-07-11 22:15:57.000000000 +0200
+++ vncserver/libvncclient/rfbproto.c 2013-07-11 22:25:21.000000000 +0200
@@ -52,6 +52,9 @@
#endif
#ifdef WIN32
#include <basetsd.h>
+#else
+#undef TRUE
+#undef FALSE
#endif
#include <jpeglib.h>
#endif

View File

@ -16,6 +16,7 @@ $(TARBALLS)/LibVNCServer-$(VNCSERVER_VERSION).tar.gz:
vncserver: LibVNCServer-$(VNCSERVER_VERSION).tar.gz .sum-vncserver
$(UNPACK)
$(APPLY) $(SRC)/vncserver/libvncclient-libjpeg-win32.patch
$(APPLY) $(SRC)/vncserver/rfbproto.patch
$(MOVE)
DEPS_vncserver = gcrypt $(DEPS_gcrypt) jpeg $(DEPS_jpeg) png $(DEPS_png)