diff --git a/changes/bug2313 b/changes/bug2313 new file mode 100644 index 0000000000..0ffbe4ab07 --- /dev/null +++ b/changes/bug2313 @@ -0,0 +1,4 @@ + o Minor bugfixes + - Fix compilation on mingw when a pthreads compatibility library + has been installed. (We don't want to use it, so we shouldn't + be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc. diff --git a/src/common/compat.h b/src/common/compat.h index 01c94d5f4e..ee20e716c0 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -31,7 +31,7 @@ #ifdef HAVE_STRING_H #include #endif -#ifdef HAVE_PTHREAD_H +#if defined(HAVE_PTHREAD_H) && !defined(MS_WINDOWS) #include #endif #include