about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--grp/initgroups.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 78985b5f0b..e8ba7be89a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,9 @@
 	* sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
 	* sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
 
+	* grp/initgroups.c: Include stdlib.h.
+	Patch by Zack Weinberg.
+
 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
 
 	* posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
diff --git a/grp/initgroups.c b/grp/initgroups.c
index 082c49fa4f..b7708077b6 100644
--- a/grp/initgroups.c
+++ b/grp/initgroups.c
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <grp.h>
 #include <limits.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>