diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-28 23:20:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-28 23:20:47 +0000 |
commit | 5c581ecaf63091451ef6572ef70041f661d09d19 (patch) | |
tree | be74075cae6b9d07528e65243df06b379d5a7607 /newlib/libc/include/sys/unistd.h | |
parent | 6d48dd20ba8333b650f15d0277c46949fe934312 (diff) | |
download | cygnal-5c581ecaf63091451ef6572ef70041f661d09d19.tar.gz cygnal-5c581ecaf63091451ef6572ef70041f661d09d19.tar.bz2 cygnal-5c581ecaf63091451ef6572ef70041f661d09d19.zip |
* libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather than
defining getopt directly.
Diffstat (limited to 'newlib/libc/include/sys/unistd.h')
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 06773ccfd..b5ed650ed 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -120,10 +120,14 @@ int _EXFUN(unlink, (const char *__path )); int _EXFUN(vhangup, (void )); _READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte )); +#ifdef __CYGWIN__ +# include <getopt.h> +#else extern char *optarg; /* getopt(3) external variables */ extern int optind, opterr, optopt; int getopt(int, char * const [], const char *); extern int optreset; /* getopt(3) external variable */ +#endif #ifndef _POSIX_SOURCE pid_t _EXFUN(vfork, (void )); |