Upgrade your Cygwin to 1.3.6 - highly recommended for the other bug fixes.
Alan. On Wed, Jan 09, 2002 at 03:37:55PM -0800, David Drysdale wrote: > Hello xfree86, > > I checked out a copy of the xfree86 source and tried to build it under > cygwin (1.3.2-1). I ran into a couple of errors when compiling > xc/programs/xtrap. gcc complained that the getopt function, opterr and a few > other related items were undefined. I took a quick look around my install > and the mailing lists to discover that the getopt functionality was moved > from unistd.h to getopt.h. I included getopt.h and gcc did not complain > anymore. Here is a patch to whom it may concern. I used cvs diff -c to > generate it. > > I hope this helps, > > David Drysdale > > > Index: xtrapchar.c > =================================================================== > RCS file: /cvs/xc/programs/xtrap/xtrapchar.c,v > retrieving revision 1.3 > diff -c -r1.3 xtrapchar.c > *** xtrapchar.c 2001/12/12 00:43:50 1.3 > --- xtrapchar.c 2002/01/09 23:16:25 > *************** > *** 90,95 **** > --- 90,100 ---- > #ifndef vaxc > #define globalref extern > #endif > + > + #ifdef __CYGWIN__ > + #include <getopt.h> > + #endif > + > /* Special private indicators */ > #define BPRESS '!' > #define BRELEASE '"' > Index: xtrapin.c > =================================================================== > RCS file: /cvs/xc/programs/xtrap/xtrapin.c,v > retrieving revision 1.2 > diff -c -r1.2 xtrapin.c > *** xtrapin.c 2001/12/12 00:43:50 1.2 > --- xtrapin.c 2002/01/09 23:16:26 > *************** > *** 95,100 **** > --- 95,104 ---- > #define globalref extern > #endif > > + #ifdef __CYGWIN__ > + #include <getopt.h> > + #endif > + > static Boolean grabFlag = False; > > FILE *ifp; > Index: xtrapout.c > =================================================================== > RCS file: /cvs/xc/programs/xtrap/xtrapout.c,v > retrieving revision 1.2 > diff -c -r1.2 xtrapout.c > *** xtrapout.c 2001/12/12 00:43:50 1.2 > --- xtrapout.c 2002/01/09 23:16:26 > *************** > *** 102,107 **** > --- 102,110 ---- > #define globalref extern > #endif > > + #ifdef __CYGWIN__ > + #include <getopt.h> > + #endif > > /* Forward declarations */ > static void SetGlobalDone (void ); > > > > -- > =============================== > David Drysdale > Real-Time Systems Inc. > http://www.realtime.bc.ca > _______________________________________________ > Xpert mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/xpert _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
