summaryrefslogtreecommitdiffstats
path: root/graphics/ogle
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-10-05 17:36:29 +0000
committerlioux <lioux@FreeBSD.org>2002-10-05 17:36:29 +0000
commita6ae5a34339792bb55e4f68b093011c686e6e222 (patch)
tree754ff37bb4378768d5fe03beb3eabe788ca97c4a /graphics/ogle
parent647cca5775b30eaf1dd5d97e35b2c8b08f78ae8d (diff)
downloadFreeBSD-ports-a6ae5a34339792bb55e4f68b093011c686e6e222.zip
FreeBSD-ports-a6ae5a34339792bb55e4f68b093011c686e6e222.tar.gz
Fix build in -CURRENT
PR: 43546 Prompted by: elevati0n <elevati0n@motocross.com> Submitted by: mbr, Lars Eggert <larse@isi.edu>
Diffstat (limited to 'graphics/ogle')
-rw-r--r--graphics/ogle/files/extra-patch-include:ogle_endian.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/graphics/ogle/files/extra-patch-include:ogle_endian.h b/graphics/ogle/files/extra-patch-include:ogle_endian.h
index 4ac268a..c776103 100644
--- a/graphics/ogle/files/extra-patch-include:ogle_endian.h
+++ b/graphics/ogle/files/extra-patch-include:ogle_endian.h
@@ -1,9 +1,18 @@
--- include/ogle_endian.h.orig Thu Oct 4 05:42:11 2001
-+++ include/ogle_endian.h Wed Apr 10 01:16:32 2002
-@@ -39,6 +39,13 @@
++++ include/ogle_endian.h Sat Sep 21 17:47:15 2002
+@@ -38,7 +38,22 @@
+ # define FROM_BE_32(x) (bswap32(x))
#elif defined(HAVE_SYS_ENDIAN_H)
# include <sys/endian.h>
++#if defined(__FreeBSD__)
++#if __FreeBSD_version >= 500000
++# define FROM_BE_32(x) (bswap32(x))
++#else
# define FROM_BE_32(x) (swap32(x))
++#endif
++#else
++# define FROM_BE_32(x) (swap32(x))
++#endif
+#elif defined(__FreeBSD__)
+# define _KERNEL
+# define I486_CPU /* Will crash unless 486+ */
OpenPOWER on IntegriCloud