diff options
-rw-r--r-- | graphics/ogle/files/extra-patch-include:ogle_endian.h | 24 | ||||
-rw-r--r-- | graphics/ogle/files/patch-include:ogle_endian.h | 11 | ||||
-rw-r--r-- | multimedia/ogle/files/extra-patch-include:ogle_endian.h | 24 | ||||
-rw-r--r-- | multimedia/ogle/files/patch-include:ogle_endian.h | 11 |
4 files changed, 42 insertions, 28 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> diff --git a/graphics/ogle/files/patch-include:ogle_endian.h b/graphics/ogle/files/patch-include:ogle_endian.h new file mode 100644 index 000000000000..479aadab635d --- /dev/null +++ b/graphics/ogle/files/patch-include:ogle_endian.h @@ -0,0 +1,11 @@ +--- 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 @@ + #elif defined(HAVE_SYS_BSWAP_H) + # include <sys/bswap.h> + # define FROM_BE_32(x) (bswap32(x)) +-#elif defined(HAVE_SYS_ENDIAN_H) ++#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__) + # include <sys/endian.h> + # define FROM_BE_32(x) (swap32(x)) + #else diff --git a/multimedia/ogle/files/extra-patch-include:ogle_endian.h b/multimedia/ogle/files/extra-patch-include:ogle_endian.h index c776103ba06f..391a38e4dfa2 100644 --- a/multimedia/ogle/files/extra-patch-include:ogle_endian.h +++ b/multimedia/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> diff --git a/multimedia/ogle/files/patch-include:ogle_endian.h b/multimedia/ogle/files/patch-include:ogle_endian.h new file mode 100644 index 000000000000..479aadab635d --- /dev/null +++ b/multimedia/ogle/files/patch-include:ogle_endian.h @@ -0,0 +1,11 @@ +--- 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 @@ + #elif defined(HAVE_SYS_BSWAP_H) + # include <sys/bswap.h> + # define FROM_BE_32(x) (bswap32(x)) +-#elif defined(HAVE_SYS_ENDIAN_H) ++#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__) + # include <sys/endian.h> + # define FROM_BE_32(x) (swap32(x)) + #else |