summaryrefslogtreecommitdiff
path: root/graphics/ogle/files/extra-patch-include:ogle_endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ogle/files/extra-patch-include:ogle_endian.h')
-rw-r--r--graphics/ogle/files/extra-patch-include:ogle_endian.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/graphics/ogle/files/extra-patch-include:ogle_endian.h b/graphics/ogle/files/extra-patch-include:ogle_endian.h
index c776103ba06f..391a38e4dfa2 100644
--- a/graphics/ogle/files/extra-patch-include:ogle_endian.h
+++ b/graphics/ogle/files/extra-patch-include:ogle_endian.h
@@ -1,25 +1,21 @@
---- include/ogle_endian.h.orig Thu Oct 4 05:42:11 2001
-+++ 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/ogle_endian.h.orig Thu Oct 10 12:20:03 2002
++++ include/ogle_endian.h Thu Oct 10 12:21:47 2002
+@@ -39,6 +39,18 @@
+ #elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__)
# 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__)
++# if defined(HAVE_SYS_ENDIAN_H) && __FreeBSD_version >= 500000
++# include <sys/endian.h>
++# define FROM_BE_32(x) (bswap32(x))
++# else
+# define _KERNEL
-+# define I486_CPU /* Will crash unless 486+ */
++# define I486_CPU /* Will crash unless 486+ */
+# include <machine/endian.h>
+# undef _KERNEL
+# undef I486_CPU
+# define FROM_BE_32(x) (ntohl(x))
++# endif
#else
# warning "No accelerated byte swap found. Using slow c version."
# include <inttypes.h>