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:
JJ Roberts-White 2021-07-31 11:51:18 +10:00
parent fb85f87c72
commit 79b6969914
2 changed files with 3 additions and 0 deletions

View file

@ -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>

View file

@ -6,6 +6,8 @@
#include <bits/posix/suseconds_t.h>
#include <bits/posix/timeval.h>
#include <sys/select.h>
#ifdef __cplusplus
extern "C" {
#endif