From af41bea661790da0f47089f387f58ffec2c875ee Mon Sep 17 00:00:00 2001
From: dscho <dscho>
Date: Fri, 3 May 2002 10:14:53 +0000
Subject: solaris fixes (INADDR_NONE)

---
 Makefile | 1 +
 rfb.h    | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

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 */
-- 
cgit v1.2.3

