mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Work around compilation failure with old Apple SDKs
When building fish-shell with the macOS 10.12 SDK, <sys/proc.h> does not
include <sys/time.h> but references `struct itimerval`. This causes a
compilation failure if we don't import <sys/time.h> ourselves.
This was previously masked by an import of <sys/sysctl.h>, which was
removed in fc0c39b6fd
.
This commit is contained in:
parent
399a71645e
commit
47aeaa1535
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <procfs.h>
|
||||
#endif
|
||||
#if __APPLE__
|
||||
#include <sys/time.h> // Required to build with old SDK versions
|
||||
#include <sys/proc.h>
|
||||
#else
|
||||
#include <dirent.h>
|
||||
|
|
Loading…
Reference in a new issue