Source-Changes-HG archive

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

[src/trunk]: src Always use NetBSD's fts(3) in compat builds. Some systems (...



details:   https://anonhg.NetBSD.org/src/rev/4ecac454f401
branches:  trunk
changeset: 536454:4ecac454f401
user:      briggs <briggs%NetBSD.org@localhost>
date:      Mon Sep 16 04:10:36 2002 +0000

description:
Always use NetBSD's fts(3) in compat builds.  Some systems (notably
Red Hat 7.3, at least) do not have fts(3) implementations that work
correctly with -D_FILE_OFFSET_BITS=64.

diffstat:

 lib/libc/gen/__fts13.c    |  6 ++----
 tools/compat/config.h.in  |  3 +--
 tools/compat/configure    |  2 +-
 tools/compat/configure.ac |  4 ++--
 tools/compat/fts.h        |  5 +++++
 5 files changed, 11 insertions(+), 9 deletions(-)

diffs (87 lines):

diff -r 79858b54e7e8 -r 4ecac454f401 lib/libc/gen/__fts13.c
--- a/lib/libc/gen/__fts13.c    Mon Sep 16 04:02:21 2002 +0000
+++ b/lib/libc/gen/__fts13.c    Mon Sep 16 04:10:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __fts13.c,v 1.39 2002/02/26 22:29:40 tv Exp $  */
+/*     $NetBSD: __fts13.c,v 1.40 2002/09/16 04:10:36 briggs Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)fts.c      8.6 (Berkeley) 8/14/94";
 #else
-__RCSID("$NetBSD: __fts13.c,v 1.39 2002/02/26 22:29:40 tv Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.40 2002/09/16 04:10:36 briggs Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -93,7 +93,6 @@
     " include <fts.h> for correct reference")
 #endif
 
-#if !HAVE_FTS_H
 static FTSENT  *fts_alloc __P((FTS *, const char *, size_t));
 static FTSENT  *fts_build __P((FTS *, int));
 static void     fts_lfree __P((FTSENT *));
@@ -1207,4 +1206,3 @@
        }
        return ret;
 }
-#endif /* !HAVE_FTS_H */
diff -r 79858b54e7e8 -r 4ecac454f401 tools/compat/config.h.in
--- a/tools/compat/config.h.in  Mon Sep 16 04:02:21 2002 +0000
+++ b/tools/compat/config.h.in  Mon Sep 16 04:10:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h.in,v 1.21 2002/09/14 04:30:27 thorpej Exp $   */
+/*     $NetBSD: config.h.in,v 1.22 2002/09/16 04:10:36 briggs Exp $    */
 
 #ifndef        __NETBSD_COMPAT_CONFIG_H__
 #define        __NETBSD_COMPAT_CONFIG_H__
@@ -11,7 +11,6 @@
 #undef HAVE_DIRENT_H
 #undef HAVE_ERR_H
 #undef HAVE_FEATURES_H
-#undef HAVE_FTS_H
 #undef HAVE_INTTYPES_H
 #undef HAVE_LIBGEN_H
 #undef HAVE_NDIR_H
diff -r 79858b54e7e8 -r 4ecac454f401 tools/compat/configure
--- a/tools/compat/configure    Mon Sep 16 04:02:21 2002 +0000
+++ b/tools/compat/configure    Mon Sep 16 04:10:36 2002 +0000
@@ -2613,7 +2613,7 @@
 fi
 done
 
-for ac_header in rpc/types.h fts.h getopt.h netconfig.h
+for ac_header in rpc/types.h getopt.h netconfig.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 echo "$as_me:2619: checking for $ac_header" >&5
diff -r 79858b54e7e8 -r 4ecac454f401 tools/compat/configure.ac
--- a/tools/compat/configure.ac Mon Sep 16 04:02:21 2002 +0000
+++ b/tools/compat/configure.ac Mon Sep 16 04:10:36 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.23 2002/09/14 04:30:27 thorpej Exp $
+#      $NetBSD: configure.ac,v 1.24 2002/09/16 04:10:37 briggs Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -41,7 +41,7 @@
 AC_CHECK_HEADERS(machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
        err.h inttypes.h libgen.h paths.h stdint.h util.h,,
        [test -f include/$ac_header || touch include/$ac_header])
-AC_CHECK_HEADERS(rpc/types.h fts.h getopt.h netconfig.h,,
+AC_CHECK_HEADERS(rpc/types.h getopt.h netconfig.h,,
        [echo '#include "config.h"' >include/$ac_header.new
        echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
        if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
diff -r 79858b54e7e8 -r 4ecac454f401 tools/compat/fts.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/compat/fts.h        Mon Sep 16 04:10:36 2002 +0000
@@ -0,0 +1,5 @@
+/*     $NetBSD: fts.h,v 1.1 2002/09/16 04:10:37 briggs Exp $   */
+
+/* We unconditionally use the NetBSD fts(3) in libnbcompat. */
+#include "config.h"
+#include "../../include/fts.h"



Home | Main Index | Thread Index | Old Index