CVS commit: [netbsd-5] src/tools/compat

2011-11-02 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Wed Nov  2 19:43:03 UTC 2011

Modified Files:
src/tools/compat [netbsd-5]: configure configure.ac nbtool_config.h.in

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1676):
tools/compat/configure.ac: revision 1.71
tools/compat/configure: revision 1.71
tools/compat/nbtool_config.h.in: revision 1.24
Test for  and provide HAVE_SYS_ENDIAN_H.
Fixes FreeBSD hosted builds (PR 42440 and PR 42470).
Approved by .
Regenerate.


To generate a diff of this commit:
cvs rdiff -u -r1.67.2.2 -r1.67.2.3 src/tools/compat/configure \
src/tools/compat/configure.ac
cvs rdiff -u -r1.21.2.1 -r1.21.2.2 src/tools/compat/nbtool_config.h.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/compat/configure
diff -u src/tools/compat/configure:1.67.2.2 src/tools/compat/configure:1.67.2.3
--- src/tools/compat/configure:1.67.2.2	Sat Oct  3 21:28:00 2009
+++ src/tools/compat/configure	Wed Nov  2 19:43:02 2011
@@ -2600,7 +2600,7 @@ EOF
 fi
 done
 
-for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
+for ac_header in 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
 do
Index: src/tools/compat/configure.ac
diff -u src/tools/compat/configure.ac:1.67.2.2 src/tools/compat/configure.ac:1.67.2.3
--- src/tools/compat/configure.ac:1.67.2.2	Sat Oct  3 21:28:00 2009
+++ src/tools/compat/configure.ac	Wed Nov  2 19:43:02 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: configure.ac,v 1.67.2.2 2009/10/03 21:28:00 snj Exp $
+#	$NetBSD: configure.ac,v 1.67.2.3 2011/11/02 19:43:02 riz Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -24,7 +24,7 @@ AC_CONFIG_HEADERS(nbtool_config.h)
 AC_CONFIG_FILES(defs.mk)
 
 # Autoheader header and footer
-AH_TOP([/*  $NetBSD: configure.ac,v 1.67.2.2 2009/10/03 21:28:00 snj Exp $*/
+AH_TOP([/*  $NetBSD: configure.ac,v 1.67.2.3 2011/11/02 19:43:02 riz Exp $*/
  
 #ifndef __NETBSD_NBTOOL_CONFIG_H__
 #define __NETBSD_NBTOOL_CONFIG_H__])
@@ -80,7 +80,7 @@ AC_CHECK_HEADERS(sys/ioctl.h sys/mman.h 
 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])

Index: src/tools/compat/nbtool_config.h.in
diff -u src/tools/compat/nbtool_config.h.in:1.21.2.1 src/tools/compat/nbtool_config.h.in:1.21.2.2
--- src/tools/compat/nbtool_config.h.in:1.21.2.1	Thu Jan 15 04:30:19 2009
+++ src/tools/compat/nbtool_config.h.in	Wed Nov  2 19:43:03 2011
@@ -1,6 +1,6 @@
 /* nbtool_config.h.in.  Generated automatically from configure.ac by autoheader.  */
 
-/*  $NetBSD: nbtool_config.h.in,v 1.21.2.1 2009/01/15 04:30:19 snj Exp $*/
+/*  $NetBSD: nbtool_config.h.in,v 1.21.2.2 2011/11/02 19:43:03 riz Exp $*/
  
 #ifndef __NETBSD_NBTOOL_CONFIG_H__
 #define __NETBSD_NBTOOL_CONFIG_H__
@@ -333,6 +333,9 @@
 /* Define if you have the  header file. */
 #undef HAVE_MACHINE_ENDIAN_H
 
+/* Define if you have the  header file. */
+#undef HAVE_SYS_ENDIAN_H
+
 /* Define if you have the  header file. */
 #undef HAVE_MALLOC_H
 



CVS commit: [netbsd-5] src/tools/compat

2010-02-16 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Feb 16 21:26:39 UTC 2010

Modified Files:
src/tools/compat [netbsd-5]: getmode.c

Log Message:
Pull up following revision(s) (requested by snj in ticket #1308):
tools/compat/getmode.c: revision 1.8
include unistd.h where getmode is traditionally declared


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.6.1 src/tools/compat/getmode.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/compat/getmode.c
diff -u src/tools/compat/getmode.c:1.7 src/tools/compat/getmode.c:1.7.6.1
--- src/tools/compat/getmode.c:1.7	Mon Apr 28 20:24:12 2008
+++ src/tools/compat/getmode.c	Tue Feb 16 21:26:39 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: getmode.c,v 1.7 2008/04/28 20:24:12 martin Exp $	*/
+/*	$NetBSD: getmode.c,v 1.7.6.1 2010/02/16 21:26:39 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,6 +31,7 @@
 
 #include "nbtool_config.h"
 #include 
+#include 
 
 void *
 setmode(const char *str)



CVS commit: [netbsd-5] src/tools/compat

2010-01-06 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Thu Jan  7 07:42:14 UTC 2010

Modified Files:
src/tools/compat [netbsd-5]: compat_defs.h

Log Message:
Apply patch (requested by tron in ticket #1202):
Don't include grp.h  Fixes cross-build under Mac OS X 10.6.


To generate a diff of this commit:
cvs rdiff -u -r1.67.2.1 -r1.67.2.2 src/tools/compat/compat_defs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.67.2.1 src/tools/compat/compat_defs.h:1.67.2.2
--- src/tools/compat/compat_defs.h:1.67.2.1	Thu Jan 15 04:32:35 2009
+++ src/tools/compat/compat_defs.h	Thu Jan  7 07:42:14 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_defs.h,v 1.67.2.1 2009/01/15 04:32:35 snj Exp $	*/
+/*	$NetBSD: compat_defs.h,v 1.67.2.2 2010/01/07 07:42:14 snj Exp $	*/
 
 #ifndef	__NETBSD_COMPAT_DEFS_H__
 #define	__NETBSD_COMPAT_DEFS_H__
@@ -38,7 +38,6 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 #include 
 #include 
@@ -76,6 +75,9 @@
 /* We don't include  here, so that "compat_pwd.h" works. */
 struct passwd;
 
+/* We don't include  here, so that "compat_pwd.h" works. */
+struct group;
+
 /* Assume an ANSI compiler for the host. */
 
 #undef __P