diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2010-12-31 18:27:20 +0800 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2010-12-31 18:27:20 +0800 |
commit | ec1b2b6508b2324f0a25961ceadefa197c3fe6c3 (patch) | |
tree | 69302012e5021628c721d766c2df36c229b63b61 /x11 | |
parent | 3b71b63930e64ef18021d0c312ff9ab30bd48b38 (diff) | |
download | freebsd-ports-gnome-ec1b2b6508b2324f0a25961ceadefa197c3fe6c3.tar.gz freebsd-ports-gnome-ec1b2b6508b2324f0a25961ceadefa197c3fe6c3.tar.zst freebsd-ports-gnome-ec1b2b6508b2324f0a25961ceadefa197c3fe6c3.zip |
Fix a problem dur to a missing byteorder.h, revealed when AfterImage
support is deactivated.
PR: ports/153508
Submitted by: Raphael Kubo da Costa <kubito (at) gmail (dot) com>
Diffstat (limited to 'x11')
-rw-r--r-- | x11/rxvt-unicode/files/patch-src_background.C | 29 | ||||
-rw-r--r-- | x11/rxvt-unicode/files/patch-src_rxvtutil.h | 18 |
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; } |