From 42b4bf2e5656427243f63bc7174cc7eddf1faa9c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 21 Mar 2012 22:20:19 +0200 Subject: Minor getopt fix for cygwin and NEWS update. --- getopt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'getopt.c') diff --git a/getopt.c b/getopt.c index c5c72a23..b1f854af 100644 --- a/getopt.c +++ b/getopt.c @@ -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 # include #endif /* GNU C library. */ -- cgit v1.2.3