summaryrefslogtreecommitdiffstats
path: root/net/gtk-vnc/files/patch-src_gvnc.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/gtk-vnc/files/patch-src_gvnc.h')
-rw-r--r--net/gtk-vnc/files/patch-src_gvnc.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/gtk-vnc/files/patch-src_gvnc.h b/net/gtk-vnc/files/patch-src_gvnc.h
new file mode 100644
index 000000000..150b05330
--- /dev/null
+++ b/net/gtk-vnc/files/patch-src_gvnc.h
@@ -0,0 +1,22 @@
+--- src/gvnc.h.orig 2008-03-24 11:39:20.000000000 -0400
++++ src/gvnc.h 2008-03-24 11:40:22.000000000 -0400
+@@ -3,6 +3,19 @@
+
+ #include <glib.h>
+ #include <stdint.h>
++#ifdef __FreeBSD__
++#include <sys/endian.h>
++
++#define __BYTE_ORDER _BYTE_ORDER
++#define __LITTLE_ENDIAN _LITTLE_ENDIAN
++#define __BIG_ENDIAN _BIG_ENDIAN
++
++#define bswap_16 bswap16
++#define bswap_32 bswap32
++#define bswap_64 bswap64
++#else
++#include <endian.h>
++#endif
+
+ struct gvnc;
+