aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorTrannie Carter <[email protected]>2009-12-08 17:07:49 -0500
committerBjörn Gustavsson <[email protected]>2009-12-18 16:18:50 +0100
commit6e606582a698bbf8e8f31d3d5b2573bcfdefbb9a (patch)
tree10df738cc942f823c4fb9dc8b865d4c693cd1b68 /erts/configure.in
parent4160466b3b32ddb93ed50c59288ada2df38a4caf (diff)
downloadotp-6e606582a698bbf8e8f31d3d5b2573bcfdefbb9a.tar.gz
otp-6e606582a698bbf8e8f31d3d5b2573bcfdefbb9a.tar.bz2
otp-6e606582a698bbf8e8f31d3d5b2573bcfdefbb9a.zip
Add -D_XOPEN_SOURCE to CPPFLAGS on Darwin platforms
ucontext routines are deprecated in Snow Leopard and defining _XOPEN_SOURCE is the suggested remedy.
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 2797351e45..370646930f 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -351,6 +351,9 @@ case $host_os in
AC_MSG_WARN([Reverting to 32-bit time_t])
CPPFLAGS="$CPPFLAGS -D_USE_32BIT_TIME_T"
;;
+ darwin*)
+ CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE"
+ ;;
*)
;;
esac