diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-08-03 23:53:41 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-08-03 23:53:41 +0000 |
commit | 231c94edfb8b62388f25e95c95e4ec342c4f89ba (patch) | |
tree | 0a3e9207c3653a877319a9cb600cce46a1db1780 /graphics/grx/files/patch-src__include__libgrx.h | |
parent | o convert the port to use bsd.linux-rpm.mk infrostructure; (diff) |
- Fix building.
Notes
Notes:
svn path=/head/; revision=169605
Diffstat (limited to 'graphics/grx/files/patch-src__include__libgrx.h')
-rw-r--r-- | graphics/grx/files/patch-src__include__libgrx.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/grx/files/patch-src__include__libgrx.h b/graphics/grx/files/patch-src__include__libgrx.h new file mode 100644 index 000000000000..7edbd856c99f --- /dev/null +++ b/graphics/grx/files/patch-src__include__libgrx.h @@ -0,0 +1,34 @@ +--- src/include/libgrx.h.orig Sun Mar 4 17:45:26 2001 ++++ src/include/libgrx.h Thu Aug 3 20:43:31 2006 +@@ -132,6 +132,9 @@ + /* + ** get system endian + */ ++#include <machine/endian.h> ++ ++#if 0 + #if !defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) + # if defined(__TURBOC__) \ + || defined(__WATCOMC__) \ +@@ -144,7 +147,9 @@ + # include <sys/byteorder.h> + # endif + #endif ++#endif + ++#if 0 + #if defined(__BYTE_ORDER__) && !defined(BYTE_ORDER) + # define BYTE_ORDER __BYTE_ORDER__ + # define LITTLE_ENDIAN __LITTLE_ENDIAN__ +@@ -163,6 +168,11 @@ + #ifndef BYTE_ORDER + #error Unknown byte ordering ! + #endif ++#endif ++ ++#define BYTE_ORDER _BYTE_ORDER ++#define LITTLE_ENDIAN _LITTLE_ENDIAN ++#define BIG_ENDIAN _BIG_ENDIAN + + #ifndef HARDWARE_BYTE_ORDER + #define HARDWARE_BYTE_ORDER BYTE_ORDER |