diff options
author | Brent Cook <bcook@openbsd.org> | 2015-10-12 15:34:03 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-10-12 15:34:03 -0500 |
commit | ff52e6f4e36b6665fc867034e64051471876269f (patch) | |
tree | 0ed6dd6160d49c352cfea77a42caf9bfba220e71 | |
parent | 41cebd325f5fe5138ae407af7da2360ada16b9e2 (diff) | |
download | portable-ff52e6f4e36b6665fc867034e64051471876269f.tar.gz portable-ff52e6f4e36b6665fc867034e64051471876269f.tar.bz2 portable-ff52e6f4e36b6665fc867034e64051471876269f.zip |
check for pledge(2)
-rw-r--r-- | include/compat/unistd.h | 4 | ||||
-rw-r--r-- | m4/check-libc.m4 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 2cd35dd..136490b 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h | |||
@@ -29,8 +29,8 @@ unsigned int sleep(unsigned int seconds); | |||
29 | int getentropy(void *buf, size_t buflen); | 29 | int getentropy(void *buf, size_t buflen); |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #ifndef HAVE_TAME | 32 | #ifndef HAVE_PLEDGE |
33 | #define tame(request, paths) 0 | 33 | #define pledge(request, paths) 0 |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #endif | 36 | #endif |
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index 2e3e820..c0df011 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -18,10 +18,10 @@ AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) | |||
18 | ]) | 18 | ]) |
19 | 19 | ||
20 | AC_DEFUN([CHECK_SYSCALL_COMPAT], [ | 20 | AC_DEFUN([CHECK_SYSCALL_COMPAT], [ |
21 | AC_CHECK_FUNCS([accept4 poll tame]) | 21 | AC_CHECK_FUNCS([accept4 pledge poll]) |
22 | AM_CONDITIONAL([HAVE_ACCEPT4], [test "x$ac_cv_func_accept4" = xyes]) | 22 | AM_CONDITIONAL([HAVE_ACCEPT4], [test "x$ac_cv_func_accept4" = xyes]) |
23 | AM_CONDITIONAL([HAVE_PLEDGE], [test "x$ac_cv_func_pledge" = xyes]) | ||
23 | AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes]) | 24 | AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes]) |
24 | AM_CONDITIONAL([HAVE_TAME], [test "x$ac_cv_func_tame" = xyes]) | ||
25 | ]) | 25 | ]) |
26 | 26 | ||
27 | AC_DEFUN([CHECK_B64_NTOP], [ | 27 | AC_DEFUN([CHECK_B64_NTOP], [ |