summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/generic
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/sysdeps/generic')
-rw-r--r--libpthread/sysdeps/generic/bits/condition-attr.h4
-rw-r--r--libpthread/sysdeps/generic/pt-attr-getschedparam.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/libpthread/sysdeps/generic/bits/condition-attr.h b/libpthread/sysdeps/generic/bits/condition-attr.h
index a1311286..4cd4e8c4 100644
--- a/libpthread/sysdeps/generic/bits/condition-attr.h
+++ b/libpthread/sysdeps/generic/bits/condition-attr.h
@@ -20,7 +20,7 @@
#ifndef _BITS_CONDITION_ATTR_H
#define _BITS_CONDITION_ATTR_H 1
-#include <time.h>
+#include <bits/types.h>
enum __pthread_process_shared;
@@ -28,7 +28,7 @@ enum __pthread_process_shared;
struct __pthread_condattr
{
enum __pthread_process_shared pshared;
- clockid_t clock;
+ __clockid_t clock;
};
#endif /* bits/condition.h */
diff --git a/libpthread/sysdeps/generic/pt-attr-getschedparam.c b/libpthread/sysdeps/generic/pt-attr-getschedparam.c
index 6c3f15be..190cf9d0 100644
--- a/libpthread/sysdeps/generic/pt-attr-getschedparam.c
+++ b/libpthread/sysdeps/generic/pt-attr-getschedparam.c
@@ -19,6 +19,7 @@
#include <pthread.h>
#include <sched.h>
+#include <string.h>
#include <pt-internal.h>