Include <unistd.h> instead of <sys/unistd.h>.
On glibc systems, the <sys/unistd.h> header simply redirects to <unistd.h>, while on musl systems this header doesn't exist. Therefore, it makes more sense to include <unistd.h> directly.
This commit is contained in:
parent
60c390ede7
commit
2e3c011ee3
1 changed files with 0 additions and 4 deletions
|
@ -8,11 +8,7 @@
|
|||
#include <stdlib.h>
|
||||
#else //_WIN32
|
||||
|
||||
#if defined(__APPLE_CC__)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <sys/unistd.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/types.h>
|
||||
|
|
Loading…
Reference in a new issue