This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH]: libc/sys/cygwin/include/unistd.h
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Mon, 17 Dec 2001 22:40:45 +0100
- Subject: [PATCH]: libc/sys/cygwin/include/unistd.h
- Reply-to: newlib <newlib at sources dot redhat dot com>
Hi,
I added a definition __UNISTD_GETOPT__ to the Cygwin specific
unistd.h file which brackets the inclusion of <getopt.h>.
The Cygwin getopt.h file is now changed so that it just defines
getopt(), opterr, optind, optarg, optopt, optreset when included
through unistd.h as it's expected by SUSv2.
The getopt_long() stuff is only defined if getopt.h is included
explicitly (not through unistd.h). The Cygwin getopt.h file
is now changed so that it's fine regardless if it's included before
or after unistd.h, or if it's included only through unistd.h.
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com