summaryrefslogtreecommitdiff
path: root/gl/unistd.in.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-28 11:15:47 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-28 11:15:47 +0300
commitb5916182650e289804c5acf2d97f0db351d5d081 (patch)
treec02cfd1d5d28183a735bf2ebc2951cdf39ef8b7d /gl/unistd.in.h
parent24439b0ba094a590e837d7be362da0584103391a (diff)
downloadgnutls-b5916182650e289804c5acf2d97f0db351d5d081.tar.gz
Avoid linking the library on librt.
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r--gl/unistd.in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index 675c7e6a55..2ea9af4365 100644
--- a/gl/unistd.in.h
+++ b/gl/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