--- Source/ThirdParty/gtest/m4/acx_pthread.m4.orig 2015-10-13 04:37:08 UTC +++ Source/ThirdParty/gtest/m4/acx_pthread.m4 @@ -219,7 +219,7 @@ if test "x$acx_pthread_ok" = xyes; then AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *-aix* | *-bsdsunix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac AC_MSG_RESULT(${flag})