Include sys/select.h on non-glibc Linux platforms (#4977)
Otherwise fd_set will be unknown for example on Musl libc systems
This commit is contained in:
parent
3381c0f6d6
commit
2ca2a50b47
@ -13,6 +13,10 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
#if !defined(__GLIBC__)
|
||||||
|
#include <sys/select.h>
|
||||||
|
#endif
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#include <mach/mach.h>
|
#include <mach/mach.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user