fixup! Unify handling of BSD systems where applicable

This commit is contained in:
Mahmoud Al-Qudsi 2020-11-20 15:06:19 -06:00
parent 06f1b34553
commit be78e9dc28

View File

@ -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.