solaris fixes (INADDR_NONE)

pull/1/head
dscho 23 years ago
parent d7117b698c
commit af41bea661

@ -2,6 +2,7 @@ INCLUDES=-I.
VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
# for Solaris # for Solaris
#CC=gcc
#EXTRALIBS=-lsocket -lnsl -L/usr/X/lib #EXTRALIBS=-lsocket -lnsl -L/usr/X/lib
# for FreeBSD # for FreeBSD

@ -81,7 +81,6 @@ typedef unsigned long KeySym;
#define SIGNED #define SIGNED
#include <sys/types.h> #include <sys/types.h>
/* typedef unsigned int pthread_t; */ /* typedef unsigned int pthread_t; */
/* SUN cc seems to have problems with inclusion of sys/types! */
#elif defined(WIN32) #elif defined(WIN32)
#define _LITTLE_ENDIAN 1234 #define _LITTLE_ENDIAN 1234
#define _BYTE_ORDER _LITTLE_ENDIAN #define _BYTE_ORDER _LITTLE_ENDIAN
@ -111,6 +110,10 @@ typedef unsigned long KeySym;
#define SOCKET int #define SOCKET int
#endif #endif
#ifndef INADDR_NONE
#define INADDR_NONE ((in_addr_t) 0xffffffff)
#endif
#ifdef HAVE_PTHREADS #ifdef HAVE_PTHREADS
#include <pthread.h> #include <pthread.h>
#if 0 /* debugging */ #if 0 /* debugging */

Loading…
Cancel
Save