From c1f97c20b56b3e489e364dd4decc7f0e2c127f9e Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 8 May 2021 16:55:30 -0700 Subject: [PATCH] Pull in missing headers for MNT_LOCAL fstatfs was only being used on Linux because MNT_LOCAL was not defined. Pull in sys/mount.h and sys/param.h so macOS can see MNT_LOCAL. --- src/fds.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fds.cpp b/src/fds.cpp index 0c4af031d..0a95d9a35 100644 --- a/src/fds.cpp +++ b/src/fds.cpp @@ -22,6 +22,9 @@ #include #endif +#include +#include + // The first fd in the "high range." fds below this are allowed to be used directly by users in // redirections, e.g. >&3 const int k_first_high_fd = 10;