unistd: don't prevent Tru64 Unix from using gnulib strtod.
authorGary V. Vaughan <gary@gnu.org>
Mon, 11 Mar 2013 05:48:58 +0000 (12:48 +0700)
committerGary V. Vaughan <gary@gnu.org>
Mon, 11 Mar 2013 05:48:58 +0000 (12:48 +0700)
* 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>
ChangeLog
lib/unistd.in.h

index 805b153..4b936ea 100644 (file)
--- 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
index 8a25aa4..31e20bc 100644 (file)
 /* 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