Wed Feb 7 13:06:00 GMT 2001
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.
Red Hat, Inc.
More information about the Newlib