summaryrefslogtreecommitdiff
path: root/multimedia/ogle/files/patch-include:ogle_endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ogle/files/patch-include:ogle_endian.h')
-rw-r--r--multimedia/ogle/files/patch-include:ogle_endian.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/multimedia/ogle/files/patch-include:ogle_endian.h b/multimedia/ogle/files/patch-include:ogle_endian.h
index 479aadab635d..555b9431c4dd 100644
--- a/multimedia/ogle/files/patch-include:ogle_endian.h
+++ b/multimedia/ogle/files/patch-include:ogle_endian.h
@@ -1,6 +1,6 @@
---- include/ogle_endian.h.orig Thu Oct 4 00:41:49 2001
-+++ include/ogle_endian.h Thu Oct 10 12:08:36 2002
-@@ -36,7 +36,7 @@
+--- include/ogle_endian.h.orig Sun Nov 10 17:13:10 2002
++++ include/ogle_endian.h Sun Nov 10 17:13:29 2002
+@@ -36,6 +36,9 @@
#elif defined(HAVE_SYS_BSWAP_H)
# include <sys/bswap.h>
# define FROM_BE_32(x) (bswap32(x))
@@ -8,4 +8,6 @@
+#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__)
# include <sys/endian.h>
# define FROM_BE_32(x) (swap32(x))
- #else
++#elif defined(HAVE_SYS_ENDIAN_H) && defined(__FreeBSD__) && __FreeBSD_version >= 470000
++# include <sys/endian.h>
++# define FROM_BE_32(x) (be32toh(x))