summaryrefslogtreecommitdiff
path: root/multimedia/ogle/files/extra-patch-include:ogle_endian.h
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-04-17 00:29:35 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-04-17 00:29:35 +0000
commit5d54f417a032fca429a303406f166ffbfc8c8d08 (patch)
tree3c6afdc00ad5d171d60f3186fff3dc5bf6b0da95 /multimedia/ogle/files/extra-patch-include:ogle_endian.h
parentChase libdvdcss update 1.1.0 version bump (diff)
o Add WITH_OPTIMIZED_BYTESWAP knob: to use optimized byteswap
routines. This works only in the i386 architecture but only with 486 processors and above. o A trick to enable use of <machine/endian.h> kernel routines Submitted by: eivind
Notes
Notes: svn path=/head/; revision=57778
Diffstat (limited to 'multimedia/ogle/files/extra-patch-include:ogle_endian.h')
-rw-r--r--multimedia/ogle/files/extra-patch-include:ogle_endian.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/ogle/files/extra-patch-include:ogle_endian.h b/multimedia/ogle/files/extra-patch-include:ogle_endian.h
new file mode 100644
index 000000000000..4ac268a17041
--- /dev/null
+++ b/multimedia/ogle/files/extra-patch-include:ogle_endian.h
@@ -0,0 +1,16 @@
+--- 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 @@
+ #elif defined(HAVE_SYS_ENDIAN_H)
+ # include <sys/endian.h>
+ # define FROM_BE_32(x) (swap32(x))
++#elif defined(__FreeBSD__)
++# define _KERNEL
++# define I486_CPU /* Will crash unless 486+ */
++# include <machine/endian.h>
++# undef _KERNEL
++# undef I486_CPU
++# define FROM_BE_32(x) (ntohl(x))
+ #else
+ # warning "No accelerated byte swap found. Using slow c version."
+ # include <inttypes.h>