aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2010-12-31 10:27:20 +0000
committerThierry Thomas <thierry@FreeBSD.org>2010-12-31 10:27:20 +0000
commitec1b2b6508b2324f0a25961ceadefa197c3fe6c3 (patch)
tree69302012e5021628c721d766c2df36c229b63b61 /x11
parent3b71b63930e64ef18021d0c312ff9ab30bd48b38 (diff)
downloadports-ec1b2b6508b2324f0a25961ceadefa197c3fe6c3.tar.gz
ports-ec1b2b6508b2324f0a25961ceadefa197c3fe6c3.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/rxvt-unicode/files/patch-src_background.C29
-rw-r--r--x11/rxvt-unicode/files/patch-src_rxvtutil.h18
2 files changed, 47 insertions, 0 deletions
diff --git a/x11/rxvt-unicode/files/patch-src_background.C b/x11/rxvt-unicode/files/patch-src_background.C
new file mode 100644
index 000000000000..6bf1e173c71a
--- /dev/null
+++ b/x11/rxvt-unicode/files/patch-src_background.C
@@ -0,0 +1,29 @@
+--- ./src/background.C.orig 2010-12-03 22:08:19.000000000 +0100
++++ ./src/background.C 2010-12-29 12:27:37.000000000 +0100
+@@ -56,6 +56,10 @@
+ #define TIMING_TEST_PRINT_RESULT(id) do {} while (0)
+ #endif
+
++#if defined( __FreeBSD__)
++# include <sys/endian.h>
++#endif
++
+ /*
+ * Pixmap geometry string interpretation :
+ * Each geometry string contains zero or one scale/position
+@@ -1596,7 +1600,15 @@
+ rgba low;
+ rgba high;
+ int i;
++#if defined(HAVE_SYS_BYTEORDER_H)
+ int host_byte_order = byteorder.big_endian () ? MSBFirst : LSBFirst;
++#else
++# if _BYTE_ORDER == _LITTLE_ENDIAN
++ int host_byte_order = LSBFirst;
++# else
++ int host_byte_order = MSBFirst;
++# endif
++#endif
+
+ if (visual->c_class != TrueColor || ximage->format != ZPixmap) return;
+
diff --git a/x11/rxvt-unicode/files/patch-src_rxvtutil.h b/x11/rxvt-unicode/files/patch-src_rxvtutil.h
new file mode 100644
index 000000000000..530272620577
--- /dev/null
+++ b/x11/rxvt-unicode/files/patch-src_rxvtutil.h
@@ -0,0 +1,18 @@
+--- src/rxvtutil.h.orig 2010-08-25 04:07:15.000000000 +0200
++++ src/rxvtutil.h 2010-12-29 12:29:26.000000000 +0100
+@@ -40,6 +40,7 @@
+ # define THROW(x) throw x
+ #endif
+
++#if defined(HAVE_SYS_BYTEORDER_H)
+ extern class byteorder {
+ static unsigned int e; // at least 32 bits
+ public:
+@@ -50,6 +51,7 @@
+ static bool little_endian () { return e == 0x44332211; };
+ static bool vax () { return e == 0x44332211; };
+ } byteorder;
++#endif
+
+ // various utility functions
+ template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }