diff options
author | mi <mi@FreeBSD.org> | 2002-11-06 14:34:39 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2002-11-06 14:34:39 +0800 |
commit | 41209c6443ebacf934ffc69f7933e663ec5810d5 (patch) | |
tree | 7ae83c42a261bf2615d5a8159e583cd2a85ec663 | |
parent | a5b7194b6c01a703415f645afd1cd82447da4f3b (diff) | |
download | freebsd-ports-gnome-41209c6443ebacf934ffc69f7933e663ec5810d5.tar.gz freebsd-ports-gnome-41209c6443ebacf934ffc69f7933e663ec5810d5.tar.zst freebsd-ports-gnome-41209c6443ebacf934ffc69f7933e663ec5810d5.zip |
Fix build on Sparc64 by automating the endianness detection. (Thanks,
once again, to the "test" target.)
-rw-r--r-- | graphics/lcms/files/patch-config | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/lcms/files/patch-config b/graphics/lcms/files/patch-config new file mode 100644 index 000000000000..ee9c19a404cf --- /dev/null +++ b/graphics/lcms/files/patch-config @@ -0,0 +1,15 @@ +--- ../include/lcms.h Wed Aug 7 15:34:37 2002 ++++ ../include/lcms.h Wed Nov 6 01:23:21 2002 +@@ -66,5 +73,11 @@ + // Uncomment this one if you are using big endian machines (only meaningful + // when NON_WINDOWS is used) +-// #define USE_BIG_ENDIAN 1 ++ ++#include <machine/endian.h> ++#if _BYTE_ORDER == _BIG_ENDIAN ++# define USE_BIG_ENDIAN 1 ++#elif _BYTE_ORDER != _LITTLE_ENDIAN ++# error "Unexpected BYTE_ORDER on this architecture" ++#endif + + // Uncomment this one if your compiler/machine does support the |