aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-05-04 12:40:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-05-04 12:40:28 +0200
commit40e8a72ebd1a8bb475b3bb25f23d8c205dadeb06 (patch)
treec9eb34799483ff9cd79eedaf21b5824e802fc3b5 /m4
parentda13cf5463a3d047c8b52c5b95b00b203e56eb2d (diff)
Add -D_REENTRANT when building on Linux to emulate -pthread
Diffstat (limited to 'm4')
-rw-r--r--m4/acx-pthread.m44
1 files changed, 3 insertions, 1 deletions
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