cygwin-1.5.23-2: /usr/include/ftw.h missing #include <features.h>

Corinna Vinschen corinna-cygwin@cygwin.com
Sun Jan 28 17:35:00 GMT 2007


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/



More information about the Cygwin mailing list