summaryrefslogtreecommitdiff
path: root/lib/sys_times.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-31 22:54:32 +0100
committerBruno Haible <bruno@clisp.org>2009-12-31 22:54:32 +0100
commit01972990f6045f7da03165940d532c270595ff67 (patch)
tree791f477b28ff150b540b88dd3f699adf0247e8a0 /lib/sys_times.in.h
parent1e22851b28319cebdfd9cf3e6975d170210b5d65 (diff)
downloadgnulib-01972990f6045f7da03165940d532c270595ff67.tar.gz
Avoid namespace pollution on glibc systems.
Diffstat (limited to 'lib/sys_times.in.h')
-rw-r--r--lib/sys_times.in.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sys_times.in.h b/lib/sys_times.in.h
index 31ab4ce37c..34aa281ee1 100644
--- a/lib/sys_times.in.h
+++ b/lib/sys_times.in.h
@@ -32,8 +32,11 @@
# define _GL_SYS_TIMES_H
-/* Get clock_t. */
-# include <time.h>
+/* Get clock_t.
+ But avoid namespace pollution on glibc systems. */
+# ifndef __GLIBC__
+# include <time.h>
+# endif
/* The definition of GL_LINK_WARNING is copied here. */