Mail Archives: cygwin/2001/11/28/20:29:55
On Wed, Nov 28, 2001 at 05:26:24PM -0800, Downey, Nathan wrote:
>Distantly related to this is a problem that I had recently. I wanted to
>compile pdksh-5.2.14 for cygwin. The only problem I have was a namespace
>conflict with getopt.h. Its seems that pdksh define a struct called "struct
>option" in the source, this is also defined in getopt.h this wouldnt have
>been a problem becuase pdksh doesnt use getopt for command line parsing, but
>it does include <unistd.h>, after looking at the definition of <unistd.h> I
>noticed that under cygwin <unistd.h> include <getopt.h>. According to the
>POSIX spec <unistd.h> is not supposed to include <getopt.h>, as a work
>around I redifed the local variable to "struct option_local"..... thought I
>would bring it up hopefully a develope can comment on whey cygwin does this?
The usual answer: Because we're mean.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -