mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-06 10:08:47 +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 infc0c39b6fd
. (cherry picked from commit47aeaa1535
)
This commit is contained in:
parent
0c905e8121
commit
3882a2ffb3
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