Mercurial > gnulib
comparison lib/unistd.in.h @ 17353:c332767f3c68
unistd: don't prevent Tru64 Unix from using gnulib strtod.
* lib/unistd.in.h: be careful not to include un-needed system
stdlib.h from here, because that prevents gnulib stdlib.h from
defining rpl_strtod correctly.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
author | Gary V. Vaughan <gary@gnu.org> |
---|---|
date | Mon, 11 Mar 2013 12:48:58 +0700 |
parents | 2c4826afb7aa |
children | 1f9070ef79b0 |
comparison
equal
deleted
inserted
replaced
17352:5cadd9d309b1 | 17353:c332767f3c68 |
---|---|
59 | 59 |
60 /* mingw fails to declare _exit in <unistd.h>. */ | 60 /* mingw fails to declare _exit in <unistd.h>. */ |
61 /* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in | 61 /* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in |
62 <unistd.h>. */ | 62 <unistd.h>. */ |
63 /* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */ | 63 /* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */ |
64 /* OSF Tru64 Unix cannot see gnulib rpl_strtod when system <stdlib.h> is | |
65 included here. */ | |
64 /* But avoid namespace pollution on glibc systems. */ | 66 /* But avoid namespace pollution on glibc systems. */ |
65 #ifndef __GLIBC__ | 67 #if !defined __GLIBC__ && !defined __osf__ |
66 # define __need_system_stdlib_h | 68 # define __need_system_stdlib_h |
67 # include <stdlib.h> | 69 # include <stdlib.h> |
68 # undef __need_system_stdlib_h | 70 # undef __need_system_stdlib_h |
69 #endif | 71 #endif |
70 | 72 |