xserver: Branch 'master'

Matthieu Herrb herrb at kemper.freedesktop.org
Mon Jul 14 13:23:42 PDT 2008


 configure.ac |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 3f3f66de669caf3606eec8c5f8d405a283cbf12d
Author: Brad Smith <brad at comstyle.com>
Date:   Mon Jul 14 22:20:41 2008 +0200

    Fix the configure tests for swap16/__swap16 macros on OpenBSD.
    
    BSD systems need <sys/types.h> included before <sys/endian.h> for
    macros to work.
    <https://bugs.freedesktop.org/show_bug.cgi?id=16531>

diff --git a/configure.ac b/configure.ac
index fed8037..a90848c 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 <sys/endian.h> byteswapping macros])
 	AC_LINK_IFELSE([AC_LANG_PROGRAM([
+#include <sys/types.h>
 #include <sys/endian.h>
  ], [
 int a = 1, b;
@@ -137,6 +138,7 @@ b = __swap16(a);
 
 	AC_MSG_CHECKING([for bswap16 variant of <sys/endian.h> byteswapping macros])
 	AC_LINK_IFELSE([AC_LANG_PROGRAM([
+#include <sys/types.h>
 #include <sys/endian.h>
  ], [
 int a = 1, b;


More information about the xorg-commit mailing list