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 /* 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 #if 0 /* debugging */