From 79b6969914fec53110a7c267ea629dbd730a73ca Mon Sep 17 00:00:00 2001 From: JJ Roberts-White Date: Sat, 31 Jul 2021 11:51:18 +1000 Subject: [PATCH] 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. --- options/posix/include/sys/select.h | 1 + options/posix/include/sys/time.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/options/posix/include/sys/select.h b/options/posix/include/sys/select.h index eb443f3c..d7ddba49 100644 --- a/options/posix/include/sys/select.h +++ b/options/posix/include/sys/select.h @@ -5,6 +5,7 @@ #include #include +#include #include #include #include diff --git a/options/posix/include/sys/time.h b/options/posix/include/sys/time.h index 62fc29f3..7e2eeebc 100644 --- a/options/posix/include/sys/time.h +++ b/options/posix/include/sys/time.h @@ -6,6 +6,8 @@ #include #include +#include + #ifdef __cplusplus extern "C" { #endif