diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-29 20:38:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-29 20:38:52 +0000 |
commit | 2b47cfe6ebd7d1c6fd0b2a2086ec55adc7537d8a (patch) | |
tree | 56174309292685355174703bb5cbb489ee29d5b5 /m4 | |
parent | 364cb07f3130d6086e54ee73de64c435c944620f (diff) | |
download | coreutils-2b47cfe6ebd7d1c6fd0b2a2086ec55adc7537d8a.tar.xz |
Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
Test for sys/ucred.h separately, since
on some systems one must include <grp.h> before it.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ls-mntd-fs.m4 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4 index 26d64d74b..c28466bb0 100644 --- a/m4/ls-mntd-fs.m4 +++ b/m4/ls-mntd-fs.m4 @@ -1,4 +1,4 @@ -#serial 13 +#serial 14 dnl From Jim Meyering. dnl @@ -11,13 +11,19 @@ AC_DEFUN([jm_LIST_MOUNTED_FILESYSTEMS], [ AC_CHECK_FUNCS(listmntent getmntinfo) AC_CHECK_HEADERS_ONCE(sys/param.h) -AC_CHECK_HEADERS(mntent.h sys/ucred.h sys/mount.h sys/fs_types.h) + +# We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses +# NGROUPS (as the array dimension for a struct member) without a definition. +AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>]) + +AC_CHECK_HEADERS(mntent.h sys/mount.h sys/fs_types.h) getfsstat_includes="\ $ac_includes_default #if HAVE_SYS_PARAM_H # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */ #endif #if HAVE_SYS_UCRED_H +# include <grp.h> /* needed for definition of NGROUPS */ # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */ #endif #if HAVE_SYS_MOUNT_H |