From 3f3f66de669caf3606eec8c5f8d405a283cbf12d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 14 Jul 2008 22:20:41 +0200 Subject: Fix the configure tests for swap16/__swap16 macros on OpenBSD. BSD systems need included before for macros to work. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fed80371c..a90848c90 100644 --- a/configure.ac +++ b/configure.ac @@ -127,6 +127,7 @@ AC_CHECK_HEADER([sys/endian.h], [HAVE_SYS_ENDIAN_H="yes"], [HAVE_SYS_ENDIAN_H="n if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then AC_MSG_CHECKING([for __swap16 variant of byteswapping macros]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ +#include #include ], [ int a = 1, b; @@ -137,6 +138,7 @@ b = __swap16(a); AC_MSG_CHECKING([for bswap16 variant of byteswapping macros]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ +#include #include ], [ int a = 1, b; -- cgit v1.2.3