Index: head/graphics/ogle/files/extra-patch-include:ogle_endian.h =================================================================== --- head/graphics/ogle/files/extra-patch-include:ogle_endian.h (revision 67354) +++ head/graphics/ogle/files/extra-patch-include:ogle_endian.h (revision 67355) @@ -1,16 +1,25 @@ --- 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 ++#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+ */ +# include +# undef _KERNEL +# undef I486_CPU +# define FROM_BE_32(x) (ntohl(x)) #else # warning "No accelerated byte swap found. Using slow c version." # include Property changes on: head/graphics/ogle/files/extra-patch-include:ogle_endian.h ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/multimedia/ogle/files/extra-patch-include:ogle_endian.h =================================================================== --- head/multimedia/ogle/files/extra-patch-include:ogle_endian.h (revision 67354) +++ head/multimedia/ogle/files/extra-patch-include:ogle_endian.h (revision 67355) @@ -1,16 +1,25 @@ --- 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 ++#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+ */ +# include +# undef _KERNEL +# undef I486_CPU +# define FROM_BE_32(x) (ntohl(x)) #else # warning "No accelerated byte swap found. Using slow c version." # include Property changes on: head/multimedia/ogle/files/extra-patch-include:ogle_endian.h ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property