This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_POSIX_SOURCE


The following lines in linux/sys/stat.h are giving me trouble:

#ifndef _POSIX_SOURCE
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?

Cheers,
Shaun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]