On Fri, Dec 14, 2001 at 10:26:55PM +0100, Jerome BENOIT wrote: > > > Jerome BENOIT wrote: > > > > Bonjour: > > > > I am rebuilding the tetex-beta package: > > I have just encountered an error message > > which did not occur during the last built. > > > > ../kpathsea/getopt.h:99: redefinition of `struct option' > > > > The error comes out because the `/usr/include/getopt.h' is read before > > by `/usr/include/unistd.h' which reads two headers: > > > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > /* unistd.h for Cygwin. */ > > > > #ifndef _UNISTD_H_ > > #define _UNISTD_H_ > > > > # include <sys/unistd.h> > > # include <getopt.h> > > > > #endif /* _UNISTD_H_ */ > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > > Is it a bug or a feature ?
A feature. At least it's supposed to be one. According to SUSv2 you have to include unistd.h to include the declaration of getopt() and friends: http://www.opengroup.org/onlinepubs/007908799/xsh/getopt.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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/