diff options
author | philwo <philwo@google.com> | 2017-10-20 11:22:38 +0200 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-10-20 14:04:05 +0200 |
commit | e222ba362c4c8c0cc0c76b308ee899e75098746a (patch) | |
tree | 3e4c3694e3a0df4e8110900e8c3141c6bf957392 /src/main/tools | |
parent | ba8b0b3273ace313d35e9917c8116bab6386c6cc (diff) |
Fix #2667: Grab MS_REC from linux/fs.h if not defined.
PiperOrigin-RevId: 172859731
Diffstat (limited to 'src/main/tools')
-rw-r--r-- | src/main/tools/linux-sandbox-pid1.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/tools/linux-sandbox-pid1.cc b/src/main/tools/linux-sandbox-pid1.cc index 849904a75f..ab5cf0eacd 100644 --- a/src/main/tools/linux-sandbox-pid1.cc +++ b/src/main/tools/linux-sandbox-pid1.cc @@ -42,6 +42,12 @@ #include <unistd.h> #include <string> +#ifndef MS_REC +// Some systems do not define MS_REC in sys/mount.h. We might be able to grab it +// from linux/fs.h instead (cf. #2667). +#include <linux/fs.h> +#endif + #include "src/main/tools/linux-sandbox-options.h" #include "src/main/tools/linux-sandbox.h" #include "src/main/tools/logging.h" |