check for pledge(2)
This commit is contained in:
parent
41cebd325f
commit
ff52e6f4e3
@ -29,8 +29,8 @@ unsigned int sleep(unsigned int seconds);
|
|||||||
int getentropy(void *buf, size_t buflen);
|
int getentropy(void *buf, size_t buflen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_TAME
|
#ifndef HAVE_PLEDGE
|
||||||
#define tame(request, paths) 0
|
#define pledge(request, paths) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,10 +18,10 @@ AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes])
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([CHECK_SYSCALL_COMPAT], [
|
AC_DEFUN([CHECK_SYSCALL_COMPAT], [
|
||||||
AC_CHECK_FUNCS([accept4 poll tame])
|
AC_CHECK_FUNCS([accept4 pledge poll])
|
||||||
AM_CONDITIONAL([HAVE_ACCEPT4], [test "x$ac_cv_func_accept4" = xyes])
|
AM_CONDITIONAL([HAVE_ACCEPT4], [test "x$ac_cv_func_accept4" = xyes])
|
||||||
|
AM_CONDITIONAL([HAVE_PLEDGE], [test "x$ac_cv_func_pledge" = xyes])
|
||||||
AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes])
|
AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes])
|
||||||
AM_CONDITIONAL([HAVE_TAME], [test "x$ac_cv_func_tame" = xyes])
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([CHECK_B64_NTOP], [
|
AC_DEFUN([CHECK_B64_NTOP], [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user