lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <>
Subject Re: [KinoSearch] c99
Date Fri, 15 Jan 2010 17:24:09 GMT
On Fri, Jan 15, 2010 at 08:49:55AM -0800, Eric Howe wrote:
> Is there some sort of _POSIX_SOURCE, _BSD_SOURCE, _XOPEN_SOURCE, ... macro
> magic needed to make things behave? 

I had a peek inside /usr/include/dirent.h on CentOS 5.2 and DT_DIR only gets
defined if "__BSD" is defined.  Apparently adding "-std=c99" turns that off.

We probably want to blindly add "-D_GNU_SOURCE" when compiling under GCC.

It should be harmless on non-glibc systems.

    Defining _GNU_SOURCE on non glibc platforms shouldn't hurt,
    so I simply dropped the switch.

Marvin Humphrey

View raw message