From a64a2d583b948308d287ab0940ca6c1958f771a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 May 2012 12:40:24 +0200 Subject: Add -D_REENTRANT when building on Linux to emulate -pthread --- m4/acx-pthread.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/acx-pthread.m4 b/m4/acx-pthread.m4 index ffa3dfa..204b32d 100644 --- a/m4/acx-pthread.m4 +++ b/m4/acx-pthread.m4 @@ -220,7 +220,9 @@ dnl fi flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + # CS: Add _REENTRANT in Linux to emulate -pthread. + # + *-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then -- cgit v1.1