diff --git a/otherlibs/threads/scheduler.c b/otherlibs/threads/scheduler.c index 5881bc6b2d5d..0e94489bd166 100644 --- a/otherlibs/threads/scheduler.c +++ b/otherlibs/threads/scheduler.c @@ -32,6 +32,10 @@ #include "Cannot compile libthreads, system calls missing" #endif +#ifdef __OpenBSD__ +#include +#endif + #include #include #include diff --git a/otherlibs/unix/select.c b/otherlibs/unix/select.c index c2475606914d..5cbf42ca10c2 100644 --- a/otherlibs/unix/select.c +++ b/otherlibs/unix/select.c @@ -23,6 +23,11 @@ #include #ifdef HAS_SYS_SELECT_H #include + +#endif + +#ifdef __OpenBSD__ +#include #endif #ifdef FD_ISSET