summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES4
-rw-r--r--Makefile7
-rw-r--r--rfb.h12
3 files changed, 11 insertions, 12 deletions
diff --git a/CHANGES b/CHANGES
index ccc8950..53cfde3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,8 +1,10 @@
+ solaris compile cleanups
+ many x11vnc improvements
added backchannel, an encoding which needs special clients to pass
arbitrary data to the client
changes from Tim Jansen regarding multi threading and client blocking
as well as C++ compliancy
- x11vnc can be controlled by restarting with special options if compiling
+ x11vnc can be controlled by starting again with special options if compiling
with LOCAL_CONTROL defined
0.3
added x11vnc, a x0rfbserver clone
diff --git a/Makefile b/Makefile
index e7acd02..2f0a16a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
INCLUDES=-I.
VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
+# for Solaris
+EXTRALIBS=-lsocket -lnsl -L/usr/X/lib
+
# Uncomment these two lines to enable use of PThreads
#PTHREADDEF = -DHAVE_PTHREADS
#PTHREADLIB = -lpthread
@@ -14,7 +17,7 @@ OPTFLAGS=-g -Wall
CFLAGS=$(OPTFLAGS) $(PTHREADDEF) $(FLAG24) $(INCLUDES) -DBACKCHANNEL
RANLIB=ranlib
-LIBS=$(LDFLAGS) $(VNCSERVERLIB) $(PTHREADLIB)
+LIBS=$(LDFLAGS) $(VNCSERVERLIB) $(PTHREADLIB) $(EXTRALIBS)
# for Mac OS X
OSX_LIBS = -framework ApplicationServices -framework Carbon
@@ -62,7 +65,7 @@ OSXvnc-server: mac.o libvncserver.a
x11vnc.o: x11vnc.c 1instance.c
x11vnc: x11vnc.o libvncserver.a
- $(CC) -o x11vnc x11vnc.o libvncserver.a -lz -ljpeg $(XLIBS)
+ $(CC) -o x11vnc x11vnc.o $(LIBS) $(XLIBS)
x11vnc_static: x11vnc.o libvncserver.a
$(CC) -o x11vnc_static x11vnc.o libvncserver.a /usr/lib/libz.a /usr/lib/libjpeg.a $(XLIBS)
diff --git a/rfb.h b/rfb.h
index 71ea774..1903d2a 100644
--- a/rfb.h
+++ b/rfb.h
@@ -66,15 +66,9 @@ typedef unsigned long KeySym;
#include <sys/types.h>
#if defined(__sparc)
/* SPARC here (big endian) */
-#ifndef _BIG_ENDIAN
-#define _BIG_ENDIAN 4321
-#endif
-#define _BYTE_ORDER _BIG_ENDIAN
+#define _BYTE_ORDER 4321
#elif defined(__i386)
-#ifndef _LITTLE_ENDIAN
-#define _LITTLE_ENDIAN 1234
-#endif
-#define _BYTE_ORDER _LITTLE_ENDIAN
+#define _BYTE_ORDER 1234
#else
#error Solaris 2.5.1 had ppc support did it not? :-)
#endif
@@ -98,7 +92,7 @@ typedef unsigned long KeySym;
#define _BYTE_ORDER __BYTE_ORDER
#endif
-#ifndef _LITTLE_ENDIAN
+#if !defined(_LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN)
#define _LITTLE_ENDIAN __LITTLE_ENDIAN
#endif