Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat Test for <sys/endian.h> and provide HAVE_SYS_EN...



details:   https://anonhg.NetBSD.org/src/rev/323a60bbfc7e
branches:  trunk
changeset: 750809:323a60bbfc7e
user:      asau <asau%NetBSD.org@localhost>
date:      Fri Jan 15 11:26:25 2010 +0000

description:
Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
Fixes FreeBSD hosted builds (PR 42440 and PR 42470).

Approved by <dholland>.

diffstat:

 tools/compat/configure.ac       |  6 +++---
 tools/compat/nbtool_config.h.in |  5 ++++-
 2 files changed, 7 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r db3508bc109a -r 323a60bbfc7e tools/compat/configure.ac
--- a/tools/compat/configure.ac Fri Jan 15 07:07:11 2010 +0000
+++ b/tools/compat/configure.ac Fri Jan 15 11:26:25 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.70 2009/06/16 22:35:34 christos Exp $
+#      $NetBSD: configure.ac,v 1.71 2010/01/15 11:26:25 asau Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -24,7 +24,7 @@
 AC_CONFIG_FILES(defs.mk)
 
 # Autoheader header and footer
-AH_TOP([/*      $NetBSD: configure.ac,v 1.70 2009/06/16 22:35:34 christos Exp $    */
+AH_TOP([/*      $NetBSD: configure.ac,v 1.71 2010/01/15 11:26:25 asau Exp $    */
  
 #ifndef __NETBSD_NBTOOL_CONFIG_H__
 #define __NETBSD_NBTOOL_CONFIG_H__])
@@ -80,7 +80,7 @@
 AC_HEADER_DIRENT
 AC_CHECK_HEADERS(sys/mtio.h sys/sysmacros.h sys/syslimits.h \
        getopt.h features.h malloc.h sys/poll.h stddef.h)
-AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
+AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h sys/endian.h \
        sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h \
        resolv.h arpa/nameser.h,,
        [test -f include/$ac_header || touch include/$ac_header])
diff -r db3508bc109a -r 323a60bbfc7e tools/compat/nbtool_config.h.in
--- a/tools/compat/nbtool_config.h.in   Fri Jan 15 07:07:11 2010 +0000
+++ b/tools/compat/nbtool_config.h.in   Fri Jan 15 11:26:25 2010 +0000
@@ -1,6 +1,6 @@
 /* nbtool_config.h.in.  Generated automatically from configure.ac by autoheader.  */
 
-/*      $NetBSD: nbtool_config.h.in,v 1.23 2009/06/16 22:35:34 christos Exp $    */
+/*      $NetBSD: nbtool_config.h.in,v 1.24 2010/01/15 11:26:25 asau Exp $    */
  
 #ifndef __NETBSD_NBTOOL_CONFIG_H__
 #define __NETBSD_NBTOOL_CONFIG_H__
@@ -336,6 +336,9 @@
 /* Define if you have the <machine/endian.h> header file. */
 #undef HAVE_MACHINE_ENDIAN_H
 
+/* Define if you have the <sys/endian.h> header file. */
+#undef HAVE_SYS_ENDIAN_H
+
 /* Define if you have the <malloc.h> header file. */
 #undef HAVE_MALLOC_H
 



Home | Main Index | Thread Index | Old Index