mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* 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.
This commit is contained in:
parent
762520f3bc
commit
01d615435c
@ -1,3 +1,9 @@
|
||||
2003-03-07 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2003-03-07 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* configure.host: Define stdio64_dir for Cygwin.
|
||||
|
@ -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;
|
||||
|
@ -1,11 +0,0 @@
|
||||
/* unistd.h for Cygwin. */
|
||||
|
||||
#ifndef _UNISTD_H_
|
||||
#define _UNISTD_H_
|
||||
|
||||
# include <sys/unistd.h>
|
||||
# define __UNISTD_GETOPT__
|
||||
# include <getopt.h>
|
||||
# undef __UNISTD_GETOPT__
|
||||
|
||||
#endif /* _UNISTD_H_ */
|
Loading…
x
Reference in New Issue
Block a user