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 | |
parent | e047ee7530cdd62f7501a82505d9f38e57f02415 (diff) | |
download | egawk-42b4bf2e5656427243f63bc7174cc7eddf1faa9c.tar.gz egawk-42b4bf2e5656427243f63bc7174cc7eddf1faa9c.tar.bz2 egawk-42b4bf2e5656427243f63bc7174cc7eddf1faa9c.zip |
Minor getopt fix for cygwin and NEWS update.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | getopt.c | 6 |
3 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2012-03-21 Corinna Vinschen <vinschen@redhat.com> + + * getopt.c: Add Cygwin to list of platforms where it's ok + to include <stdlib.h>. + 2012-03-20 Arnold D. Robbins <arnold@skeeve.com> Get new getopt to work on Linux and C90 compilers: @@ -13,7 +13,9 @@ Changes from 4.0.0 to 4.0.1 2. Completed the implementation of Rational Range Interpretation. -3. Lots of minor bugs fixed and portability clean-ups along the way. See +3. Failure to get the group set is no longer a fatal error. + +4. Lots of minor bugs fixed and portability clean-ups along the way. See the ChangeLog for details. Changes from 3.1.8 to 4.0.0 @@ -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. */ |