summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-09-02 02:05:22 +0000
committerjlam <jlam@pkgsrc.org>2003-09-02 02:05:22 +0000
commitfa35a5815010c20c89aa6f6f7f0c05e5e8ecc998 (patch)
tree4ad1df68c89e8a0e5d4ef851902ad11c46d3c725 /pkgtools
parentecf222502325005088455d1471d33ab21da3bfea (diff)
downloadpkgsrc-fa35a5815010c20c89aa6f6f7f0c05e5e8ecc998.tar.gz
Solaris needs to include <sys/vfs.h> to get definitions for statvfs().
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/libnbcompat/files/configure5
-rw-r--r--pkgtools/libnbcompat/files/configure.ac4
-rw-r--r--pkgtools/libnbcompat/files/statfs.c6
3 files changed, 10 insertions, 5 deletions
diff --git a/pkgtools/libnbcompat/files/configure b/pkgtools/libnbcompat/files/configure
index 88cb6b85071..52ec1293922 100755
--- a/pkgtools/libnbcompat/files/configure
+++ b/pkgtools/libnbcompat/files/configure
@@ -3101,6 +3101,7 @@ done
+
for ac_header in arpa/nameser.h assert.h bind/bitypes.h dirent.h err.h \
errno.h fcntl.h fts.h inttypes.h libutil.h limits.h \
machine/endian.h memory.h ndir.h netdb.h netinet/in6_machtypes.h \
@@ -3108,8 +3109,8 @@ 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 termcap.h termios.h \
- time.h tzfile.h unistd.h util.h utmp.h vis.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 vis.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 d2750893c1e..a4c4413c179 100644
--- a/pkgtools/libnbcompat/files/configure.ac
+++ b/pkgtools/libnbcompat/files/configure.ac
@@ -34,8 +34,8 @@ 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 termcap.h termios.h \
- time.h tzfile.h unistd.h util.h utmp.h vis.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 vis.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C___ATTRIBUTE__
diff --git a/pkgtools/libnbcompat/files/statfs.c b/pkgtools/libnbcompat/files/statfs.c
index f3eef2033c8..a8bac8cd101 100644
--- a/pkgtools/libnbcompat/files/statfs.c
+++ b/pkgtools/libnbcompat/files/statfs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: statfs.c,v 1.1 2003/09/01 15:31:21 jlam Exp $ */
+/* $NetBSD: statfs.c,v 1.2 2003/09/02 02:05:22 jlam Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -55,6 +55,10 @@
#include <sys/statvfs.h>
#endif
+#if HAVE_SYS_VFS_H
+#include <sys/vfs.h>
+#endif
+
#define MFSNAMELEN 16 /* length of fs type name, including nul */
#define MNAMELEN 90 /* length of buffer for returned name */