aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-02-16 22:22:29 -0600
committerBrent Cook <bcook@openbsd.org>2015-02-17 18:15:17 -0600
commita859b93ff583300349ee0b7fb8231cf6c387e269 (patch)
tree4ae03e67df0c83b43e645e0743de94b92478cf4c /configure.ac
parentadc416e922f98b4b52093f26c91216e3b4106f3d (diff)
downloadportable-a859b93ff583300349ee0b7fb8231cf6c387e269.tar.gz
portable-a859b93ff583300349ee0b7fb8231cf6c387e269.tar.bz2
portable-a859b93ff583300349ee0b7fb8231cf6c387e269.zip
disable system issetugid on OS X since it is not fork-safe
Noticed while testing similar code for AIX. ok beck@
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 46e9a40..391b232 100644
--- a/configure.ac
+++ b/configure.ac
@@ -226,6 +226,11 @@ AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF],
226 -a "x$HOST_OS" != xnetbsd \ 226 -a "x$HOST_OS" != xnetbsd \
227 -a "x$ac_cv_func_arc4random_buf" = xyes]) 227 -a "x$ac_cv_func_arc4random_buf" = xyes])
228 228
229# overrides for issetugid implementations with known issues
230AM_CONDITIONAL([HAVE_ISSETUGID],
231 [test "x$HOST_OS" != xdarwin
232 -a "x$ac_cv_func_issetugid" = xyes])
233
229AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ 234AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [
230 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 235 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
231#include <stdarg.h> 236#include <stdarg.h>