[KinoSearch] c99
Marvin Humphrey
marvin at rectangular.com
Fri Jan 15 09:24:09 PST 2010
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
More information about the kinosearch
mailing list