summaryrefslogtreecommitdiff
path: root/lib/mountlist.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-29 20:41:16 +0000
committerJim Meyering <jim@meyering.net>2004-01-29 20:41:16 +0000
commit21def62f57d520d864091f2811f18475defd0c99 (patch)
tree6b0938024c20c47596cb6c299b8534a7b51ba93f /lib/mountlist.c
parent533aba4a37a111136a263eb61d17196fb0a680e6 (diff)
downloadcoreutils-21def62f57d520d864091f2811f18475defd0c99.tar.xz
[HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
Diffstat (limited to 'lib/mountlist.c')
-rw-r--r--lib/mountlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 9f77c6c36..631be3123 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -1,5 +1,5 @@
/* mountlist.c -- return a list of mounted filesystems
- Copyright (C) 1991, 1992, 1997-2003 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1992, 1997-2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -53,6 +53,8 @@ extern int errno;
#if defined MOUNTED_GETFSSTAT /* OSF_1 and Darwin1.3.x */
# if HAVE_SYS_UCRED_H
+# include <grp.h> /* needed on OSF V4.0 for definition of NGROUPS,
+ NGROUPS is used as an array dimension in ucred.h */
# include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
# endif
# if HAVE_SYS_MOUNT_H