hardcode support for MS_REC

This commit is contained in:
unbit
2013-09-08 12:47:07 +02:00
parent 31bde74fab
commit 8954520cb9
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -12,6 +12,12 @@
*/
#ifdef __linux__
#ifndef MS_REC
#define MS_REC 16384
#endif
#endif
struct uwsgi_mount_flag {
char *key;
uint64_t value;
@@ -96,6 +102,7 @@ parsed:
#ifdef __linux__
return mount(what, where, fs, mountflags, NULL);
#elif defined(__FreeBSD__)
return mount(fs, where, (int) mountflags, what);
#endif
return -1;
}
+6
View File
@@ -233,7 +233,13 @@ extern "C" {
#include <sched.h>
#include <sys/prctl.h>
#include <linux/limits.h>
#endif
#if defined(__linux) || defined(__FreeBSD__)
#include <sys/mount.h>
#endif
#ifdef __linux__
extern int pivot_root(const char *new_root, const char *put_old);
#endif