pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files Solaris needs to include <s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9706ef0f18a3
branches:  trunk
changeset: 460624:9706ef0f18a3
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Sep 02 02:05:22 2003 +0000

description:
Solaris needs to include <sys/vfs.h> to get definitions for statvfs().

diffstat:

 pkgtools/libnbcompat/files/configure    |  5 +++--
 pkgtools/libnbcompat/files/configure.ac |  4 ++--
 pkgtools/libnbcompat/files/statfs.c     |  6 +++++-
 3 files changed, 10 insertions(+), 5 deletions(-)

diffs (56 lines):

diff -r bde07625a230 -r 9706ef0f18a3 pkgtools/libnbcompat/files/configure
--- a/pkgtools/libnbcompat/files/configure      Tue Sep 02 01:54:39 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure      Tue Sep 02 02:05:22 2003 +0000
@@ -3101,6 +3101,7 @@
 
 
 
+
 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 @@
        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 -r bde07625a230 -r 9706ef0f18a3 pkgtools/libnbcompat/files/configure.ac
--- a/pkgtools/libnbcompat/files/configure.ac   Tue Sep 02 01:54:39 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure.ac   Tue Sep 02 02:05:22 2003 +0000
@@ -34,8 +34,8 @@
        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 -r bde07625a230 -r 9706ef0f18a3 pkgtools/libnbcompat/files/statfs.c
--- a/pkgtools/libnbcompat/files/statfs.c       Tue Sep 02 01:54:39 2003 +0000
+++ b/pkgtools/libnbcompat/files/statfs.c       Tue Sep 02 02:05:22 2003 +0000
@@ -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 */
 



Home | Main Index | Thread Index | Old Index