aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2016-07-12 05:18:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2016-07-12 05:18:38 +0000
commitf542fd5ca7a16165d80c5f968777e7a4bf71e6f1 (patch)
treea60e83176d01c8e55e89b917496c94f3eca8a812 /configure
parentaf7a169637d40943e8d31fa35588170dabefcb23 (diff)
downloadmandoc-f542fd5ca7a16165d80c5f968777e7a4bf71e6f1.tar.gz
mandoc-f542fd5ca7a16165d80c5f968777e7a4bf71e6f1.tar.zst
mandoc-f542fd5ca7a16165d80c5f968777e7a4bf71e6f1.zip
Add support for Mac OS X's sandbox_init(3) sandbox functionality, which
is marked as DEPRECATED in OS X after 2011 or so, but has not been removed and has no replacement. ok schwarze@
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 13fd1409..6f2c4116 100755
--- a/configure
+++ b/configure
@@ -58,6 +58,7 @@ HAVE_PROGNAME=
HAVE_REALLOCARRAY=
HAVE_REWB_BSD=
HAVE_REWB_SYSV=
+HAVE_SANDBOX_INIT=
HAVE_STRCASESTR=
HAVE_STRINGLIST=
HAVE_STRLCAT=
@@ -186,6 +187,7 @@ runtest isblank ISBLANK || true
runtest mkdtemp MKDTEMP || true
runtest mmap MMAP || true
runtest pledge PLEDGE || true
+runtest sandbox_init SANDBOX_INIT || true
runtest progname PROGNAME || true
runtest reallocarray REALLOCARRAY || true
runtest rewb-bsd REWB_BSD || true
@@ -317,6 +319,7 @@ cat << __HEREDOC__
#define HAVE_REALLOCARRAY ${HAVE_REALLOCARRAY}
#define HAVE_REWB_BSD ${HAVE_REWB_BSD}
#define HAVE_REWB_SYSV ${HAVE_REWB_SYSV}
+#define HAVE_SANDBOX_INIT ${HAVE_SANDBOX_INIT}
#define HAVE_STRCASESTR ${HAVE_STRCASESTR}
#define HAVE_STRINGLIST ${HAVE_STRINGLIST}
#define HAVE_STRLCAT ${HAVE_STRLCAT}