projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't include <config.h> twice; this doesn't work in some cases,
[gnulib.git]
/
lib
/
getugroups.c
diff --git
a/lib/getugroups.c
b/lib/getugroups.c
index
7aa540d
..
970192e
100644
(file)
--- a/
lib/getugroups.c
+++ b/
lib/getugroups.c
@@
-1,7
+1,7
@@
/* getugroups.c -- return a list of the groups a user is in
/* getugroups.c -- return a list of the groups a user is in
- Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003, 2004, 2005
Free
- Software Foundation.
+ Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003, 2004, 2005
, 2006
+
Free
Software Foundation.
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
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
@@
-19,9
+19,7
@@
/* Written by David MacKenzie. */
/* Written by David MacKenzie. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include <sys/types.h>
#include <stdio.h> /* grp.h on alpha OSF1 V2.0 uses "FILE *". */
#include <sys/types.h>
#include <stdio.h> /* grp.h on alpha OSF1 V2.0 uses "FILE *". */
@@
-34,8
+32,7
@@
# define EOVERFLOW EINVAL
#endif
# define EOVERFLOW EINVAL
#endif
-/* setgrent, getgrent, and endgrent are not specified by POSIX.1,
- so header files might not declare them.
+/* Some old header files might not declare setgrent, getgrent, and endgrent.
If you don't have them at all, we can't implement this function.
You lose! */
struct group *getgrent ();
If you don't have them at all, we can't implement this function.
You lose! */
struct group *getgrent ();