Mercurial > hg > octave-kai > gnulib-hg
changeset 17364: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 | 5cadd9d309b1 |
children | a154fccd3b21 |
files | ChangeLog lib/unistd.in.h |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-03-11 Gary V. Vaughan <gary@gnu.org> + + 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. + 2013-03-09 Gary V. Vaughan <gary@gnu.org> vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
--- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -61,8 +61,10 @@ /* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ /* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */ +/* OSF Tru64 Unix cannot see gnulib rpl_strtod when system <stdlib.h> is + included here. */ /* But avoid namespace pollution on glibc systems. */ -#ifndef __GLIBC__ +#if !defined __GLIBC__ && !defined __osf__ # define __need_system_stdlib_h # include <stdlib.h> # undef __need_system_stdlib_h