diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-03-21 22:20:19 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-03-21 22:20:19 +0200 |
commit | 42b4bf2e5656427243f63bc7174cc7eddf1faa9c (patch) | |
tree | e83b58394df3502aeb3f67a0062b5a5e2b14daec /getopt.c | |
parent | e047ee7530cdd62f7501a82505d9f38e57f02415 (diff) | |
download | egawk-42b4bf2e5656427243f63bc7174cc7eddf1faa9c.tar.gz egawk-42b4bf2e5656427243f63bc7174cc7eddf1faa9c.tar.bz2 egawk-42b4bf2e5656427243f63bc7174cc7eddf1faa9c.zip |
Minor getopt fix for cygwin and NEWS update.
Diffstat (limited to 'getopt.c')
-rw-r--r-- | getopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -58,9 +58,9 @@ /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ -#ifdef __GNU_LIBRARY__ -/* Don't include stdlib.h for non-GNU C libraries because some of them - contain conflicting prototypes for getopt. */ +#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) +/* Don't include stdlib.h for non-GNU C libraries and non-Cygwin because some + of them contain conflicting prototypes for getopt. */ # include <stdlib.h> # include <unistd.h> #endif /* GNU C library. */ |