diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-06 12:45:47 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-06 12:45:47 +0000 |
commit | cf4166d6bd9acec3cd031fcd7e0a168b48dd3adb (patch) | |
tree | 40f2b6a2e1b0557ab9d3635c96b4256c4347dc04 /pkgtools/libnbcompat | |
parent | 9a6a338518bba50cd40bd6015dd69eb6de44cf23 (diff) | |
download | pkgsrc-cf4166d6bd9acec3cd031fcd7e0a168b48dd3adb.tar.gz |
Also check for presence of <sys/statfs.h>, and pretend we don't have it if
we use libnbcompat's statfs.
Diffstat (limited to 'pkgtools/libnbcompat')
-rwxr-xr-x | pkgtools/libnbcompat/files/configure | 6 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/configure.ac | 5 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat.h | 7 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/nbconfig.h.in | 3 |
4 files changed, 15 insertions, 6 deletions
diff --git a/pkgtools/libnbcompat/files/configure b/pkgtools/libnbcompat/files/configure index 54a392d280a..498e3feab9b 100755 --- a/pkgtools/libnbcompat/files/configure +++ b/pkgtools/libnbcompat/files/configure @@ -3167,6 +3167,7 @@ done + for ac_header in arpa/nameser.h assert.h bind/bitypes.h dirent.h err.h \ errno.h fcntl.h fts.h glob.h inttypes.h libutil.h limits.h \ machine/endian.h memory.h ndir.h netdb.h netinet/in6_machtypes.h \ @@ -3174,8 +3175,9 @@ for ac_header in arpa/nameser.h assert.h bind/bitypes.h dirent.h err.h \ string.h sys/bitypes.h sys/byteorder.h sys/cdefs.h sys/dir.h \ sys/endian.h sys/file.h sys/mkdev.h sys/mount.h sys/ndir.h \ sys/param.h sys/poll.h sys/queue.h sys/time.h sys/ttycom.h \ - sys/stat.h sys/statvfs.h sys/vfs.h sys/types.h sys/vfs.h termcap.h \ - termios.h time.h tzfile.h unistd.h util.h utmp.h + sys/stat.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/types.h \ + sys/vfs.h termcap.h termios.h time.h tzfile.h unistd.h util.h \ + utmp.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then diff --git a/pkgtools/libnbcompat/files/configure.ac b/pkgtools/libnbcompat/files/configure.ac index 219fd7a1f01..76d46d95dab 100644 --- a/pkgtools/libnbcompat/files/configure.ac +++ b/pkgtools/libnbcompat/files/configure.ac @@ -37,8 +37,9 @@ AC_CHECK_HEADERS([arpa/nameser.h assert.h bind/bitypes.h dirent.h err.h \ string.h sys/bitypes.h sys/byteorder.h sys/cdefs.h sys/dir.h \ sys/endian.h sys/file.h sys/mkdev.h sys/mount.h sys/ndir.h \ sys/param.h sys/poll.h sys/queue.h sys/time.h sys/ttycom.h \ - sys/stat.h sys/statvfs.h sys/vfs.h sys/types.h sys/vfs.h termcap.h \ - termios.h time.h tzfile.h unistd.h util.h utmp.h]) + sys/stat.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/types.h \ + sys/vfs.h termcap.h termios.h time.h tzfile.h unistd.h util.h \ + utmp.h]) AC_CHECK_HEADERS([md5.h rmd160.h sha1.h]) diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h index 5ecd9fee8b0..a306bbd3800 100644 --- a/pkgtools/libnbcompat/files/nbcompat.h +++ b/pkgtools/libnbcompat/files/nbcompat.h @@ -1,4 +1,4 @@ -/* $NetBSD: nbcompat.h,v 1.17 2003/09/06 06:13:48 jlam Exp $ */ +/* $NetBSD: nbcompat.h,v 1.18 2003/09/06 12:45:48 jlam Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -339,7 +339,7 @@ void tputs(const char *, int, int (*)(int)); #endif #if HAVE_NBCOMPAT_VIS -# ifdef HAVE_VIS_H +# if HAVE_VIS_H # undef HAVE_VIS_H # endif #endif @@ -508,6 +508,9 @@ int gid_from_group(const char *, gid_t *); #endif #if HAVE_NBCOMPAT_STATFS +# if HAVE_SYS_STATFS_H +# undef HAVE_SYS_STATFS_H +# endif # include <nbcompat/statfs.h> #endif diff --git a/pkgtools/libnbcompat/files/nbcompat/nbconfig.h.in b/pkgtools/libnbcompat/files/nbcompat/nbconfig.h.in index 8adfad995b5..cd78beedb05 100644 --- a/pkgtools/libnbcompat/files/nbcompat/nbconfig.h.in +++ b/pkgtools/libnbcompat/files/nbcompat/nbconfig.h.in @@ -333,6 +333,9 @@ /* Define to 1 if you have the <sys/queue.h> header file. */ #undef HAVE_SYS_QUEUE_H +/* Define to 1 if you have the <sys/statfs.h> header file. */ +#undef HAVE_SYS_STATFS_H + /* Define to 1 if you have the <sys/statvfs.h> header file. */ #undef HAVE_SYS_STATVFS_H |