[PATCH]: libc/sys/cygwin/include/unistd.h

Corinna Vinschen vinschen@redhat.com
Wed Feb 7 13:06:00 GMT 2001


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



More information about the Newlib mailing list