mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
fixup! Unify handling of BSD systems where applicable
This commit is contained in:
parent
06f1b34553
commit
be78e9dc28
|
@ -34,12 +34,6 @@
|
|||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#ifdef __BSD__
|
||||
#include <sys/sysctl.h>
|
||||
#elif defined(__APPLE__)
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <memory> // IWYU pragma: keep
|
||||
|
@ -61,6 +55,13 @@
|
|||
#include "wildcard.h"
|
||||
#include "wutil.h" // IWYU pragma: keep
|
||||
|
||||
// Keep after "common.h"
|
||||
#ifdef __BSD__
|
||||
#include <sys/sysctl.h>
|
||||
#elif defined(__APPLE__)
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
struct termios shell_modes;
|
||||
|
||||
/// This allows us to notice when we've forked.
|
||||
|
|
Loading…
Reference in New Issue
Block a user