summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-09-28 09:20:50 +0000
committerdscho <dscho>2001-09-28 09:20:50 +0000
commit9e5110faf702e0b44c65e40f4cde9ac525fccb13 (patch)
treeaab018101c9663c00c7eb5b0acb5dc3941926e3b /rfb.h
parent7c10483c86b8b1d42916e29302407e839f8c74c0 (diff)
downloadlibtdevnc-9e5110faf702e0b44c65e40f4cde9ac525fccb13.tar.gz
libtdevnc-9e5110faf702e0b44c65e40f4cde9ac525fccb13.zip
now compiles on FreeBSD
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/rfb.h b/rfb.h
index f17303b..384a74b 100644
--- a/rfb.h
+++ b/rfb.h
@@ -49,14 +49,21 @@ int max(int,int);
#include <zlib.h>
#include <rfbproto.h>
-#include <netinet/in.h>
+
#ifdef HAVE_PTHREADS
#include <pthread.h>
+#define IF_PTHREADS(x) (x)
+#else
+#define IF_PTHREADS(x)
#endif
+
+
+
#ifdef __linux__
#include <endian.h>
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
+#include <sys/types.h>
#include <machine/endian.h>
#define _BYTE_ORDER BYTE_ORDER
#define _LITTLE_ENDIAN LITTLE_ENDIAN
@@ -73,14 +80,9 @@ int max(int,int);
#define _LITTLE_ENDIAN __LITTLE_ENDIAN
#endif
-#define MAX_ENCODINGS 10
-
-#ifdef HAVE_PTHREADS
-#define IF_PTHREADS(x) (x)
-#else
-#define IF_PTHREADS(x)
-#endif
+#include <netinet/in.h>
+#define MAX_ENCODINGS 10
struct rfbClientRec;
struct rfbScreenInfo;