options/posix: Include sys/select.h in sys/time.h, include timespec in sys/select.h
The POSIX spec states that time.h should include select function and various macros from sys/select.h. It also states that sys/select.h should define timespec. This is needed for zsh to compile as it tests for timespec in sys/time.h.
This commit is contained in:
parent
fb85f87c72
commit
79b6969914
|
@ -5,6 +5,7 @@
|
|||
#include <abi-bits/signal.h>
|
||||
|
||||
#include <bits/ansi/time_t.h>
|
||||
#include <bits/ansi/timespec.h>
|
||||
#include <bits/posix/suseconds_t.h>
|
||||
#include <bits/posix/timeval.h>
|
||||
#include <bits/posix/fd_set.h>
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#include <bits/posix/suseconds_t.h>
|
||||
#include <bits/posix/timeval.h>
|
||||
|
||||
#include <sys/select.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue