Skip to content

Commit

Permalink
Fixed NO_SANDBOX support.
Browse files Browse the repository at this point in the history
  • Loading branch information
marinosi committed Feb 21, 2013
1 parent ce6e5db commit 0aa6886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ LDADD= -lfetch -lmd
CFLAGS+= -I ../libsep
DPADD+= ${LIBSEP}
LDADD+= -L../libsep/ -lsep
.else
CFLAGS+= -DNO_SANDBOX
.endif

.include <bsd.prog.mk>
4 changes: 4 additions & 0 deletions fetch_sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
#include <errno.h>
#include <err.h>

#ifndef NO_SANDBOX
#include <sandbox.h>
/*#include <sandbox_rpc.h>*/
#endif

#include "fetch_internal.h"

Expand All @@ -57,6 +59,7 @@
#define PROXIED_FETCH 1


#ifndef NO_SANDBOX
/* fetch sandbox control block */
struct sandbox_cb *fscb;

Expand Down Expand Up @@ -240,6 +243,7 @@ fsandbox(void)
/* exit */
exit(0);
}
#endif

int
fetch_wrapper(char *URL, const char *path)
Expand Down

0 comments on commit 0aa6886

Please sign in to comment.