aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ogle
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-11-24 05:34:36 +0800
committerlioux <lioux@FreeBSD.org>2002-11-24 05:34:36 +0800
commite96ea212307deb500b36a424e61066fa0dd8c536 (patch)
tree89ab7e3dfc3816f1e437ffb28163c0abab46a3e6 /multimedia/ogle
parentbb4f4376141a3c3d835d55911200e1f8e5cae7b0 (diff)
downloadfreebsd-ports-gnome-e96ea212307deb500b36a424e61066fa0dd8c536.tar.gz
freebsd-ports-gnome-e96ea212307deb500b36a424e61066fa0dd8c536.tar.zst
freebsd-ports-gnome-e96ea212307deb500b36a424e61066fa0dd8c536.zip
Fix a logic error: add <sys/param.h> in patch-include:ogle_endian.h
instead of extra-patch-include:ogle_endian.h since the former is optional. Therefore, all checks inside patch-include:ogle_endian.h will work regardless of application of extra-patch-include:ogle_endian.h
Diffstat (limited to 'multimedia/ogle')
-rw-r--r--multimedia/ogle/files/extra-patch-include:ogle_endian.h12
-rw-r--r--multimedia/ogle/files/patch-include:ogle_endian.h12
2 files changed, 10 insertions, 14 deletions
diff --git a/multimedia/ogle/files/extra-patch-include:ogle_endian.h b/multimedia/ogle/files/extra-patch-include:ogle_endian.h
index 80ea4b9c6108..84e96d757188 100644
--- a/multimedia/ogle/files/extra-patch-include:ogle_endian.h
+++ b/multimedia/ogle/files/extra-patch-include:ogle_endian.h
@@ -1,16 +1,6 @@
--- include/ogle_endian.h.orig Thu Oct 4 00:41:49 2001
+++ include/ogle_endian.h Sun Nov 10 17:12:23 2002
-@@ -29,6 +29,9 @@
- # define FROM_BE_32(x) (x)
- #else
-
-+#if (defined(__unix__) || defined(unix)) && !defined(USG)
-+#include <sys/param.h>
-+#endif
-
- #if defined(HAVE_BYTESWAP_H)
- # include <byteswap.h>
-@@ -39,6 +42,13 @@
+@@ -39,6 +39,13 @@
#elif defined(HAVE_SYS_ENDIAN_H)
# include <sys/endian.h>
# define FROM_BE_32(x) (swap32(x))
diff --git a/multimedia/ogle/files/patch-include:ogle_endian.h b/multimedia/ogle/files/patch-include:ogle_endian.h
index 555b9431c4dd..69eccbe994b8 100644
--- a/multimedia/ogle/files/patch-include:ogle_endian.h
+++ b/multimedia/ogle/files/patch-include:ogle_endian.h
@@ -1,8 +1,13 @@
--- 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>
+@@ -27,2 +27,6 @@
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ #ifdef WORDS_BIGENDIAN
+@@ -38,5 +42,8 @@
# define FROM_BE_32(x) (bswap32(x))
-#elif defined(HAVE_SYS_ENDIAN_H)
+#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__)
@@ -11,3 +16,4 @@
+#elif defined(HAVE_SYS_ENDIAN_H) && defined(__FreeBSD__) && __FreeBSD_version >= 470000
+# include <sys/endian.h>
+# define FROM_BE_32(x) (be32toh(x))
+ #else