summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-09-27 11:29:05 +0000
committerdscho <dscho>2001-09-27 11:29:05 +0000
commit080ad356d38dcb2acf3cdc4e1c30b9ee12251ba0 (patch)
tree89c34d5448986489aab3e390afec7bc4921f77e8 /rfb.h
parentfb53d4812061fd0976398fc2609a5f5b4a2331a6 (diff)
downloadlibtdevnc-080ad356d38dcb2acf3cdc4e1c30b9ee12251ba0.tar.gz
libtdevnc-080ad356d38dcb2acf3cdc4e1c30b9ee12251ba0.zip
try to make OSXvnc run again.
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rfb.h b/rfb.h
index c7eaae8..207f7e1 100644
--- a/rfb.h
+++ b/rfb.h
@@ -56,8 +56,14 @@ int max(int,int);
#ifdef __linux__
#include <endian.h>
#else
+#ifdef __APPLE__
+#include <machine/endian.h>
+#define _BYTE_ORDER BYTE_ORDER
+#define _LITTLE_ENDIAN LITTLE_ENDIAN
+#else
#include <sys/endian.h>
#endif
+#endif
#ifndef _BYTE_ORDER
#define _BYTE_ORDER __BYTE_ORDER