aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-13 21:41:10 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-13 21:41:10 +0000
commit6340ea91d4ea610aa8525903a75c67d95c3158a3 (patch)
tree26b7a3400da475ac7a3fdb4e060cfaba1d7a73ff /time
parent07146b0ee0000170c4cfb89bd8b384639f104ef3 (diff)
downloadglibc-6340ea91d4ea610aa8525903a75c67d95c3158a3.tar
glibc-6340ea91d4ea610aa8525903a75c67d95c3158a3.tar.gz
glibc-6340ea91d4ea610aa8525903a75c67d95c3158a3.tar.bz2
glibc-6340ea91d4ea610aa8525903a75c67d95c3158a3.zip
Update.
2000-09-13 Ulrich Drepper <drepper@redhat.com> * time/time.h: Don't defined clockid_t and timer_t unless POSIX definitions are requested.
Diffstat (limited to 'time')
-rw-r--r--time/time.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/time/time.h b/time/time.h
index edf34fb7e1..b2472738ff 100644
--- a/time/time.h
+++ b/time/time.h
@@ -50,7 +50,6 @@ __BEGIN_DECLS
#endif /* <time.h> included. */
-
#if !defined __clock_t_defined && (defined _TIME_H || defined __need_clock_t)
# define __clock_t_defined 1
@@ -73,7 +72,8 @@ typedef __time_t time_t;
#endif /* time_t not defined and <time.h> or need time_t. */
#undef __need_time_t
-#if !defined __clockid_t_defined && (defined _TIME_H || defined __need_clockid_t)
+#if !defined __clockid_t_defined && \
+ ((defined _TIME_H && defined __USE_POSIX199309) || defined __need_clockid_t)
# define __clockid_t_defined 1
# include <bits/types.h>
@@ -84,7 +84,8 @@ typedef __clockid_t clockid_t;
#endif /* clockid_t not defined and <time.h> or need clockid_t. */
#undef __clockid_time_t
-#if !defined __timer_t_defined && (defined _TIME_H || defined __need_timer_t)
+#if !defined __timer_t_defined && \
+ ((defined _TIME_H && defined __USE_POSIX199309) || defined __need_timer_t)
# define __timer_t_defined 1
# include <bits/types.h>