On Jan 27 15:43, Gary Johnson wrote: > The following file, testfile.c, > > #include <ftw.h> > > void foo(void) > { > return; > } > > compiles without error using "gcc -c testfile.c" on HP-UX 10.20, > SunOS 5.8 and Red Hat Linux 9, but on Cygwin, the following error > results: > > $ gcc -c testfile.c > In file included from testfile.c:1: > /usr/include/ftw.h:64: error: syntax error before "int" > testfile.c:3: error: syntax error before "void"
Thanks, fixed in CVS. For the time being, include <sys/cdefs.h> before including ftw.h. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/