aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sandbox.c b/sandbox.c
index 0078551..4a49f07 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -1,3 +1,13 @@
+#ifdef WITHOUT_SANDBOX
+
+void sbox_enter(const char *basedir)
+{
+ /* nothing to do */
+ (void)basedir;
+}
+
+#else /* WITHOUT_SANDBOX */
+
#include "xs.h"
#include "snac.h"
@@ -113,3 +123,5 @@ void sbox_enter(const char *basedir)
#endif
}
+
+#endif /* WITHOUT_SANDBOX */