2533a8a982
bump PKGREVISION
35 lines
747 B
Text
35 lines
747 B
Text
$NetBSD: patch-m4_byteorder.m4,v 1.1 2016/04/09 14:19:25 richard Exp $
|
|
|
|
add SunOS byteorder needs
|
|
|
|
--- m4/byteorder.m4.orig 2013-02-23 02:00:56.000000000 +0000
|
|
+++ m4/byteorder.m4
|
|
@@ -110,6 +110,20 @@ dnl Linux GLIBC
|
|
EOF],
|
|
|
|
[
|
|
+dnl SunOS
|
|
+ AC_HAVE_SYMBOL(BSWAP_32,sys/byteorder.h,
|
|
+dnl sys/byteorder.h should already be implicitly included
|
|
+ [cat >> "$1" << EOF
|
|
+/* Define generic byte swapping functions */
|
|
+EOF
|
|
+cat >> "$1" << EOF
|
|
+#define swap16(x) BSWAP_16(x)
|
|
+#define swap32(x) BSWAP_32(x)
|
|
+#define swap64(x) BSWAP_64(x)
|
|
+
|
|
+EOF],
|
|
+
|
|
+ [
|
|
dnl NetBSD
|
|
AC_HAVE_SYMBOL(bswap32,machine/endian.h,
|
|
dnl We're already including machine/endian.h if this test succeeds
|
|
@@ -194,6 +208,7 @@ EOF
|
|
EOF
|
|
fi
|
|
])
|
|
+])
|
|
])
|
|
])
|
|
])
|