summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2002-05-03 10:14:53 +0000
committerdscho <dscho>2002-05-03 10:14:53 +0000
commitaf41bea661790da0f47089f387f58ffec2c875ee (patch)
tree4d97202be51534c637dd79cc04a45a868f550ecb
parentd7117b698cfd33f182000b69b16ea4f00cb7659c (diff)
downloadlibtdevnc-af41bea661790da0f47089f387f58ffec2c875ee.tar.gz
libtdevnc-af41bea661790da0f47089f387f58ffec2c875ee.zip
solaris fixes (INADDR_NONE)
-rw-r--r--Makefile1
-rw-r--r--rfb.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d1940d4..403f170 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ INCLUDES=-I.
VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
# for Solaris
+#CC=gcc
#EXTRALIBS=-lsocket -lnsl -L/usr/X/lib
# for FreeBSD
diff --git a/rfb.h b/rfb.h
index e5cff59..7c7121c 100644
--- a/rfb.h
+++ b/rfb.h
@@ -81,7 +81,6 @@ typedef unsigned long KeySym;
#define SIGNED
#include <sys/types.h>
/* typedef unsigned int pthread_t; */
-/* SUN cc seems to have problems with inclusion of sys/types! */
#elif defined(WIN32)
#define _LITTLE_ENDIAN 1234
#define _BYTE_ORDER _LITTLE_ENDIAN
@@ -111,6 +110,10 @@ typedef unsigned long KeySym;
#define SOCKET int
#endif
+#ifndef INADDR_NONE
+#define INADDR_NONE ((in_addr_t) 0xffffffff)
+#endif
+
#ifdef HAVE_PTHREADS
#include <pthread.h>
#if 0 /* debugging */