From 0aa6886980042d971da42f12ad79136b09c4c69e Mon Sep 17 00:00:00 2001 From: Ilias Marinos Date: Thu, 21 Feb 2013 22:02:34 +0000 Subject: [PATCH] Fixed NO_SANDBOX support. --- Makefile | 2 ++ fetch_sandbox.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 0fcdd1c..35ce978 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ LDADD= -lfetch -lmd CFLAGS+= -I ../libsep DPADD+= ${LIBSEP} LDADD+= -L../libsep/ -lsep +.else +CFLAGS+= -DNO_SANDBOX .endif .include diff --git a/fetch_sandbox.c b/fetch_sandbox.c index 9fed01f..a4375ef 100644 --- a/fetch_sandbox.c +++ b/fetch_sandbox.c @@ -36,8 +36,10 @@ #include #include +#ifndef NO_SANDBOX #include /*#include */ +#endif #include "fetch_internal.h" @@ -57,6 +59,7 @@ #define PROXIED_FETCH 1 +#ifndef NO_SANDBOX /* fetch sandbox control block */ struct sandbox_cb *fscb; @@ -240,6 +243,7 @@ fsandbox(void) /* exit */ exit(0); } +#endif int fetch_wrapper(char *URL, const char *path)