diff --git a/include/boost/python/detail/wrap_python.hpp b/include/boost/python/detail/wrap_python.hpp index d0ad5dd2..3807eae1 100644 --- a/include/boost/python/detail/wrap_python.hpp +++ b/include/boost/python/detail/wrap_python.hpp @@ -47,7 +47,9 @@ typedef int pid_t; # define HAVE_STRERROR # endif # define NT_THREADS -# define WITH_THREAD +# if __GNUC__ < 3 || __GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ < 3 +# define WITH_THREAD +# endif # ifndef NETSCAPE_PI # define USE_SOCKET # endif