Fix build in -CURRENT
PR: 43546 Prompted by: elevati0n <elevati0n@motocross.com> Submitted by: mbr, Lars Eggert <larse@isi.edu>
This commit is contained in:
parent
e0260a34d9
commit
9854034982
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67355
@ -1,9 +1,18 @@
|
||||
--- 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 <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__)
|
||||
+# define _KERNEL
|
||||
+# define I486_CPU /* Will crash unless 486+ */
|
||||
|
@ -1,9 +1,18 @@
|
||||
--- 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 <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__)
|
||||
+# define _KERNEL
|
||||
+# define I486_CPU /* Will crash unless 486+ */
|
||||
|
Loading…
Reference in New Issue
Block a user