aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2012-02-14 12:21:03 +0100
committerNick Mathewson <nickm@torproject.org>2012-02-14 11:18:39 -0500
commitefb7b9dec135594718b765234bc1f745855f60d2 (patch)
treecf8b42d4c5c221354e0b1bf97a7a6ef8e9f42056 /configure.in
parentefcdc930fb02d471ef1a5f4c09a30ea512ca5a8b (diff)
downloadtor-efb7b9dec135594718b765234bc1f745855f60d2.tar
tor-efb7b9dec135594718b765234bc1f745855f60d2.tar.gz
Use _NSGetEnviron() instead of environ where required
OS X would otherwise crash with a segfault when linked statically to some libraries.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index b39d156d4..7b6d8fb02 100644
--- a/configure.in
+++ b/configure.in
@@ -292,6 +292,7 @@ dnl Check for functions before libevent, since libevent-1.2 apparently
dnl exports strlcpy without defining it in a header.
AC_CHECK_FUNCS(
+ _NSGetEnviron \
accept4 \
clock_gettime \
flock \
@@ -622,6 +623,7 @@ dnl These headers are not essential
AC_CHECK_HEADERS(
arpa/inet.h \
+ crt_externs.h \
grp.h \
ifaddrs.h \
inttypes.h \