summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-18 19:03:02 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-18 19:04:39 +0100
commit1f04c9e131d45afaed640c1ede5cdb0bab62ada4 (patch)
treefa98191075004249d342a6b8cdc28096ba2c8ae6
parent930c63cd54c8db823af29ba6e5a015dc4d5021ca (diff)
Fix getting types
* pthread/pt-internal.h: Include <bits/types/res_state.h> instead of defining __need_res_state and including <resolv.h>. * sysdeps/pthread/semaphore.h [__USE_XOPEN2K]: Include <bits/types/struct_timespec.h> instead of defining __need_timespec and including <time.h>.
-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. */