From b39b8c14fa6484710af9b1d9bef286f15581d1e5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 5 Jan 2006 17:35:14 +0000 Subject: [PATCH] * include/getopt.h: Accommodate recent unfortunate newlib changes. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/getopt.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4202ca008..ff80caf04 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2006-01-05 Christopher Faylor + + * include/getopt.h: Accommodate recent unfortunate newlib changes. + 2006-01-05 Christopher Faylor * cygtls.cc (_cygtls::remove): Don't output debugging info if this diff --git a/winsup/cygwin/include/getopt.h b/winsup/cygwin/include/getopt.h index ba095ba2f..1efff1ca1 100644 --- a/winsup/cygwin/include/getopt.h +++ b/winsup/cygwin/include/getopt.h @@ -31,6 +31,9 @@ * SUCH DAMAGE. */ +#ifdef _COMPILING_NEWLIB +#include_next "getopt.h" +#else #ifndef __GETOPT_H__ #define __GETOPT_H__ @@ -84,3 +87,4 @@ int getopt_long (int, char *const *, const char *, const struct option *, int *) #endif /* __GETOPT_LONG_H__ */ #endif /* __UNISTD_GETOPT__ */ +#endif /*_INSIDE_NEWLIB*/