Source-Changes-HG archive

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

[src/trunk]: src/tools/compat cygwin defines u_quad_t in <rpc/types.h>, so in...



details:   https://anonhg.NetBSD.org/src/rev/18c706bcceac
branches:  trunk
changeset: 784992:18c706bcceac
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 17 00:34:11 2013 +0000

description:
cygwin defines u_quad_t in <rpc/types.h>, so include this to the headers
we include and test by default.

diffstat:

 tools/compat/compat_defs.h |  6 +++++-
 tools/compat/configure.ac  |  5 +++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 4477908278e7 -r 18c706bcceac tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Sun Feb 17 00:32:42 2013 +0000
+++ b/tools/compat/compat_defs.h        Sun Feb 17 00:34:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.86 2012/06/04 10:18:01 joerg Exp $   */
+/*     $NetBSD: compat_defs.h,v 1.87 2013/02/17 00:34:11 christos Exp $        */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -62,6 +62,10 @@
 #include <stddef.h>
 #endif
 
+#if HAVE_RPC_TYPES_H
+#include <rpc/types.h>
+#endif
+
 #ifdef _NETBSD_SOURCE
 #error _NETBSD_SOURCE is *not* to be defined.
 #endif
diff -r 4477908278e7 -r 18c706bcceac tools/compat/configure.ac
--- a/tools/compat/configure.ac Sun Feb 17 00:32:42 2013 +0000
+++ b/tools/compat/configure.ac Sun Feb 17 00:34:11 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.74 2011/11/03 14:13:53 joerg Exp $
+#      $NetBSD: configure.ac,v 1.75 2013/02/17 00:34:11 christos Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -79,7 +79,7 @@
 # Find headers that may not be available.
 AC_HEADER_DIRENT
 AC_CHECK_HEADERS(sys/mtio.h sys/sysmacros.h sys/syslimits.h \
-       getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h)
+       getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h rpc/types.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,,
@@ -100,6 +100,7 @@
 AC_CHECK_TYPE(socklen_t, [AC_DEFINE([HAVE_SOCKLEN_T], 1,
                          [Define if you have the socklen_t type.])],,
 [#include <sys/types.h>
+#include <rpc/types.h>
 #include <sys/socket.h>])
 
 dnl XXX - This is UGLY.  Need a better way to homogenize the bitsized types,



Home | Main Index | Thread Index | Old Index