projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad77a60
)
[HAVE_ENDGRENT]: Define away endgrent.
author
Jim Meyering
<jim@meyering.net>
Wed, 18 Oct 1995 15:59:12 +0000
(15:59 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 18 Oct 1995 15:59:12 +0000
(15:59 +0000)
[HAVE_ENDPWENT]: Define away endpwent.
lib/userspec.c
patch
|
blob
|
history
diff --git
a/lib/userspec.c
b/lib/userspec.c
index d95780a1a635fe447fe5a97b800639f8d709e68e..c6a49fae2745c113d3fc29205259889d092fb6b4 100644
(file)
--- a/
lib/userspec.c
+++ b/
lib/userspec.c
@@
-63,9
+63,12
@@
struct group *getgrnam ();
struct group *getgrgid ();
#endif
-#ifdef _POSIX_SOURCE
-#define endpwent()
-#define endgrent()
+#ifndef HAVE_ENDGRENT
+# define endgrent() ((void) 0)
+#endif
+
+#ifndef HAVE_ENDPWENT
+# define endpwent() ((void) 0)
#endif
/* Perform the equivalent of the statement `dest = strdup (src);',