diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-18 19:03:02 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-18 19:04:39 +0100 |
commit | 1f04c9e131d45afaed640c1ede5cdb0bab62ada4 (patch) | |
tree | fa98191075004249d342a6b8cdc28096ba2c8ae6 /sysdeps/pthread/semaphore.h | |
parent | 930c63cd54c8db823af29ba6e5a015dc4d5021ca (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>.
Diffstat (limited to 'sysdeps/pthread/semaphore.h')
-rw-r--r-- | sysdeps/pthread/semaphore.h | 3 |
1 files changed, 1 insertions, 2 deletions
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. */ |