This is the mail archive of the
mailing list for the newlib project.
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 5 Apr 2005 09:08:37 -0700
- Subject: _POSIX_SOURCE
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
The following lines in linux/sys/stat.h are giving me trouble:
int _EXFUN(lstat,( const char *file_name, struct stat *buf));
#endif /* _POSIX_SOURCE */
Since _POSIX_SOURCE is defined in a header file (features.h), there's
no clean way at build time to undefine it with a -U flag. The
semantics of glibc's _POSIX_SOURCE are to include POSIX functions, not
to disinclude BSD functions. This and other places should be #ifdef
_BSD_SOURCE, to be compatible with glibc's features.h. Would you
accept a patch against files that use the #ifndef _POSIX_SOURCE idiom?