Jerome BENOIT wrote: > > Thanks for the responses: > > The `gtopt.h' "is part of the GNU C Library" > and the one distributed by cygwin is copytighted by > "The Regents of the University of California". > > Is there a conventional way to avoid the reading of the first one > distributed by Cygwin in view to read only the distributed by `tetex' ? > > Is it dangerous to define "__GETOPT_H__" somewhere to do that ? > > Thanks in advance, > Jerome BENOIT > > Corinna Vinschen wrote:header file distributed within tetex > > > > 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/ > > -- > *º¤., ¸¸,.¤º*¨¨¨*¤ Jerome BENOIT, Ph.D. *º¤., ¸¸,.¤º*¨¨¨*¤ > Institute of Molecular Biology > Friedrich-Schiller University of Jena > Winzerlaer Strasse 10, Jena 07745, Germany > *º¤., ¸¸,.¤º*¨¨¨*¤ [EMAIL PROTECTED] *º¤., ¸¸,.¤º*¨¨¨*¤ -- *º¤., ¸¸,.¤º*¨¨¨*¤ Jerome BENOIT, Ph.D. *º¤., ¸¸,.¤º*¨¨¨*¤ Institute of Molecular Biology Friedrich-Schiller University of Jena Winzerlaer Strasse 10, Jena 07745, Germany *º¤., ¸¸,.¤º*¨¨¨*¤ [EMAIL PROTECTED] *º¤., ¸¸,.¤º*¨¨¨*¤ -- 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/