aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-10-05 17:36:29 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-10-05 17:36:29 +0000
commit9854034982686a78f28e1d1967eccd1a214376bb (patch)
tree0940c8b04d284b1c072812ef6945f08b0755d020
parente0260a34d9f3a7035aac3e826def8a140585ff6a (diff)
downloadports-9854034982686a78f28e1d1967eccd1a214376bb.tar.gz
ports-9854034982686a78f28e1d1967eccd1a214376bb.zip
Notes
-rw-r--r--graphics/ogle/files/extra-patch-include:ogle_endian.h13
-rw-r--r--multimedia/ogle/files/extra-patch-include:ogle_endian.h13
2 files changed, 22 insertions, 4 deletions
diff --git a/graphics/ogle/files/extra-patch-include:ogle_endian.h b/graphics/ogle/files/extra-patch-include:ogle_endian.h
index 4ac268a17041..c776103ba06f 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+ */
diff --git a/multimedia/ogle/files/extra-patch-include:ogle_endian.h b/multimedia/ogle/files/extra-patch-include:ogle_endian.h
index 4ac268a17041..c776103ba06f 100644
--- a/multimedia/ogle/files/extra-patch-include:ogle_endian.h
+++ b/multimedia/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+ */