lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <mar...@rectangular.com>
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.

  http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

It should be harmless on non-glibc systems.

    http://mail.python.org/pipermail/python-dev/2000-July/005414.html

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

Marvin Humphrey


Mime
View raw message