aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-02-18 14:08:18 +0100
committerLukas Larsson <[email protected]>2013-02-18 14:08:18 +0100
commit7ae0bc7ee6be2f4b712f4147e100b2a9cca1358f (patch)
treea1a33b220b24e26d9e52c22ba2c9eb975ec108e0 /erts
parentb31843c0cdfe31a1a81f5c11b9dd288c120d9da5 (diff)
parent10e9e948c2cccc03f9c3e6f326d4294c23122a99 (diff)
downloadotp-7ae0bc7ee6be2f4b712f4147e100b2a9cca1358f.tar.gz
otp-7ae0bc7ee6be2f4b712f4147e100b2a9cca1358f.tar.bz2
otp-7ae0bc7ee6be2f4b712f4147e100b2a9cca1358f.zip
Merge branch 'lukas/erts/writev_osx_fix/OTP-10858'
* lukas/erts/writev_osx_fix/OTP-10858: Do not use writev on osx snow leopard
Diffstat (limited to 'erts')
-rw-r--r--erts/configure.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 1e3a607a6f..7257751068 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1923,12 +1923,21 @@ fi
AC_CHECK_FUNCS([getipnodebyname getipnodebyaddr gethostbyname2])
AC_CHECK_FUNCS([ieee_handler fpsetmask finite isnan isinf res_gethostbyname dlopen \
- pread pwrite writev memmove strerror strerror_r strncasecmp \
+ pread pwrite memmove strerror strerror_r strncasecmp \
gethrtime localtime_r gmtime_r inet_pton mmap mremap memcpy mallopt \
sbrk _sbrk __sbrk brk _brk __brk \
flockfile fstat strlcpy strlcat setsid posix2time time2posix \
setlocale nl_langinfo poll])
+dnl writev on OS X snow leopard is broken for files > 4GB
+case $host_os in
+ darwin10.8.0)
+ AC_MSG_CHECKING([for writev])
+ AC_MSG_RESULT(no, not stable on OS X Snow Leopard) ;;
+ *)
+ AC_CHECK_FUNCS([writev]) ;;
+esac
+
AC_CHECK_DECLS([posix2time, time2posix],,,[#include <time.h>])
disable_vfork=false