diff options
author | dscho <dscho> | 2004-01-16 13:53:54 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-01-16 13:53:54 +0000 |
commit | 15f3a61eb5b9256c42a400d47f96da4174fd5fc3 (patch) | |
tree | 6c9433525789d2abe9aca7831dddf07ea7a080ea | |
parent | 11e3f6a6b0c6e5b6e1923e05fa8001d698d86f8d (diff) | |
download | libtdevnc-15f3a61eb5b9256c42a400d47f96da4174fd5fc3.tar.gz libtdevnc-15f3a61eb5b9256c42a400d47f96da4174fd5fc3.zip |
compile fix for cygwin
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | cargs.c | 2 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | contrib/Makefile.am | 6 | ||||
-rw-r--r-- | rfbserver.c | 8 | ||||
-rw-r--r-- | vncauth.c | 2 |
6 files changed, 20 insertions, 5 deletions
@@ -1,3 +1,6 @@ +2004-01-16 Johannes E. Schindelin <[email protected]> + * compile fix for cygwin + 2004-01-09 Karl Runge <[email protected]> * x11vnc options -allow, -localhost, -nodragging, -input_skip * minimize memory usage under -nofb @@ -53,7 +53,7 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) { int i,i1; - if(!argc) return; + if(!argc) return TRUE; for (i = i1 = 1; i < *argc;) { if (strcmp(argv[i], "-help") == 0) { diff --git a/configure.ac b/configure.ac index 147be1f..5c4bfba 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,10 @@ AC_CHECK_LIB(nsl,gethostbyname) AC_CHECK_LIB(socket,socket) AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mkfifo select socket strchr strcspn strdup strerror strstr setsid]) +# check, if shmget is in cygipc.a +AC_CHECK_LIB(cygipc,shmget) +AM_CONDITIONAL(CYGIPC, test "$HAVE_CYGIPC" = "true") + # Check if /dev/vcsa1 exists, if so, define LINUX AM_CONDITIONAL(LINUX, test -c /dev/vcsa1) diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 8d00a9a..848b9a2 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -3,11 +3,15 @@ LDADD = ../libvncserver.a noinst_PROGRAMS=zippy +if CYGIPC +LD_CYGIPC=-lcygipc +endif + if HAVE_X bin_PROGRAMS=x11vnc x11vnc_SOURCES=x11vnc.c INCLUDES=@X_CFLAGS@ -x11vnc_LDADD=@X_LIBS@ $(LDADD) +x11vnc_LDADD=@X_LIBS@ $(LD_CYGIPC) $(LDADD) endif zippy_SOURCES=zippy.c diff --git a/rfbserver.c b/rfbserver.c index 3c6aec8..914aa0b 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -228,7 +228,6 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) rfbClientPtr cl,cl_; struct sockaddr_in addr; size_t addrlen = sizeof(struct sockaddr_in); - int i; cl = (rfbClientPtr)calloc(sizeof(rfbClientRec),1); @@ -317,8 +316,11 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) #ifdef LIBVNCSERVER_HAVE_LIBJPEG cl->tightCompressLevel = TIGHT_DEFAULT_COMPRESSION; cl->tightQualityLevel = -1; - for (i = 0; i < 4; i++) - cl->zsActive[i] = FALSE; + { + int i; + for (i = 0; i < 4; i++) + cl->zsActive[i] = FALSE; + } #endif cl->enableCursorShapeUpdates = FALSE; @@ -22,6 +22,8 @@ */ #include <stdio.h> +#include <stdlib.h> +#include <unistd.h> #include <rfb/rfbproto.h> #include "d3des.h" |