This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: Don't claim GCC predefines __POSIX__


On Sat, 18 Feb 2012, Alfred M. Szmidt wrote:

> It is a quick way to check though, so if a system is not POSIX
> (i.e. doesn't have <unistd.h>, and doesn't define _POSIX_VERSION) then
> it will fail.  If it works, then you should (in theory) have a POSIX

Yes, that gets back to my point of using an autoconf test (since "doesn't 
have <unistd.h>" isn't something to test in a #if directive).

I've now committed my patch.

-- 
Joseph S. Myers
joseph@codesourcery.com


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