RE: [gnome-db] libgda on cygwin problem



On Sun, 2002-07-28 at 00:47, Fernando Martins wrote:
> Hi Gonzalo!
> 
> Thanks for answering. The message was intended for the list, of course.
> BTW, I'm subscribed, so no need to cc.
> 
> OK, tonight I had a bit of time to look at it and this is the situation (a
> bit long but simple stuff for those who know ;-):
> 
> 1) the filer lexer.c is including unistd.h and I think it should not because
> it contains, starting on line 1552:
> 
> #ifndef _WIN32
> #include <unistd.h>
> #else
> #ifndef YY_ALWAYS_INTERACTIVE
> #ifndef YY_NEVER_INTERACTIVE
> extern int isatty YY_PROTO(( int ));
> #endif
> #endif
> #endif
> 
> It looks like _WIN32 should be defined, but it's not. If I comment out the
> ifndef, the compilation completes (with a few warnings). I don't know what
> should be done to have _WIN32 defined. Can someone help here?
> 
via autotools. Once you check for cygwin on configure.in, you just have
to call AC_DEFINE to generate a #define _WIN32 on config.h, which you
then include in your source code file.

But, anyway, lexer.c is an auto-generated file, generated by lex, so I
don't know what the best fix should be used here.

cheers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]