Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-08 07:57:41 +0300
committerChristopher Faylor <me@cgf.cx>2003-03-08 07:57:41 +0300
commit01d615435c88d73c50ea0818544633a20c6db232 (patch)
treec5a1cc663c7d50ce33a6cbbb09e1565c5a4c024f /newlib/libc/include/sys/unistd.h
parent762520f3bc4d160d2af658f5dd59dfd09d76bc7f (diff)
* libc/include/sys/unistd.h: Guard getopt.h call to force only declaration of
getopt and avoid getopt_long declaration. * libc/sys/cygwin/include/unistd.h: Remove.
Diffstat (limited to 'newlib/libc/include/sys/unistd.h')
-rw-r--r--newlib/libc/include/sys/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 270be89aa..8879ee67d 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -126,7 +126,9 @@ int _EXFUN(vhangup, (void ));
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte ));
#ifdef __CYGWIN__
+# define __UNISTD_GETOPT__
# include <getopt.h>
+# undef __UNISTD_GETOPT__
#else
extern char *optarg; /* getopt(3) external variables */
extern int optind, opterr, optopt;