This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]