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.
It should be harmless on non-glibc systems.
Defining _GNU_SOURCE on non glibc platforms shouldn't hurt,
so I simply dropped the switch.
More information about the kinosearch