summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pthread/pt-internal.h3
-rw-r--r--sysdeps/pthread/semaphore.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/pthread/pt-internal.h b/pthread/pt-internal.h
index 267a751..3024e64 100644
--- a/pthread/pt-internal.h
+++ b/pthread/pt-internal.h
@@ -24,8 +24,7 @@
#include <sched.h>
#include <signal.h>
#include <assert.h>
-#define __need_res_state
-#include <resolv.h>
+#include <bits/types/res_state.h>
#include <bits/pt-atomic.h>
diff --git a/sysdeps/pthread/semaphore.h b/sysdeps/pthread/semaphore.h
index c8fdb72..a6f96e3 100644
--- a/sysdeps/pthread/semaphore.h
+++ b/sysdeps/pthread/semaphore.h
@@ -21,8 +21,7 @@
#include <features.h>
#include <sys/types.h>
#ifdef __USE_XOPEN2K
-# define __need_timespec
-# include <time.h>
+# include <bits/types/struct_timespec.h>
#endif
/* Get the definition for struct __semaphore. */