aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog5
-rw-r--r--support/getopt.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 848afde8..58669a5c 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-24 Arnold D. Robbins <arnold@skeeve.com>
+
+ * getopt.c: Include <stdlib.h> to get declarations of
+ malloc and free.
+
2017-12-20 Arnold D. Robbins <arnold@skeeve.com>
* regex.h: Restore GLIBC's use of '__' in parameter names. They
diff --git a/support/getopt.c b/support/getopt.c
index 8bc59610..64293754 100644
--- a/support/getopt.c
+++ b/support/getopt.c
@@ -30,6 +30,7 @@
#endif
#include <stdio.h>
+#include <stdlib.h> /* For malloc and free */
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C