diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-24 21:29:58 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-24 21:29:58 +0200 |
commit | 5134135d033b268ac260b4e05ddfebe07b93894f (patch) | |
tree | 0981f1d95d663e7ab4af3f6c5a9854dcebef2631 | |
parent | fcd243fb130b6b4424c26d279772f286a9cdde84 (diff) | |
download | egawk-5134135d033b268ac260b4e05ddfebe07b93894f.tar.gz egawk-5134135d033b268ac260b4e05ddfebe07b93894f.tar.bz2 egawk-5134135d033b268ac260b4e05ddfebe07b93894f.zip |
Add include of stdlib.h to getopt.c.
-rw-r--r-- | support/ChangeLog | 5 | ||||
-rw-r--r-- | support/getopt.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 74dd7865..9756b4a2 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 |