diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-04 12:40:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-04 12:40:26 +0200 |
commit | 98eae2e174b98b8f84dc562d3236d1f274af9085 (patch) | |
tree | 8c866de80d6a32b84fba59a1e133583a02358f65 /m4/acx-pthread.m4 | |
parent | 62706e82679131da6b12ca8918e1e1728c84f049 (diff) |
Add -D_REENTRANT when building on Linux to emulate -pthread
Diffstat (limited to 'm4/acx-pthread.m4')
-rw-r--r-- | m4/acx-pthread.m4 | 4 |
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 |