aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-03-15 08:10:32 +0100
committerBjörn Gustavsson <[email protected]>2016-03-15 13:16:07 +0100
commitb0421f3d267a99da21466050fd5715b7869f38c6 (patch)
treeeab1fddff2a78e14cc6f3f2be4ff55c72ad076c9 /erts
parent99b8c76f52558a1522f8ecc9efef7b3633656c8a (diff)
downloadotp-b0421f3d267a99da21466050fd5715b7869f38c6.tar.gz
otp-b0421f3d267a99da21466050fd5715b7869f38c6.tar.bz2
otp-b0421f3d267a99da21466050fd5715b7869f38c6.zip
configure.in: Fix compilation error in ethread.c
3121171f56c2 made warnings for missing prototypes into compilation errors. That broke building on MacOS X, because prototypes for the pthread_getname_np() and pthread_setname_np() functions included by ethread.c are missing. The prototypes for those functions *are* located in pthread.h, but are not included if _XOPEN_SOURCE is defined. Therefore, we must undefine _XOPEN_SOURCE. 6e606582a6 is the commit that started to define _XOPEN_SOURCE on MacOS X in order to mend floating-point exceptions. Since fp exceptions again are broken and disabled by default, it is safe to remove the definition of _XOPEN_SOURCE.
Diffstat (limited to 'erts')
-rw-r--r--erts/configure.in3
1 files changed, 0 insertions, 3 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 021780ecc2..854bdbdc15 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -476,9 +476,6 @@ case $host_os in
# -D_WIN32_WINNT=* from CPPFLAGS is saved in ETHR_DEFS.
CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600 -DWINVER=0x0600"
;;
- darwin*)
- CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE"
- ;;
*)
;;
esac