]> Savannah Git Hosting - gnulib.git/commitdiff
Fix check for pthreads.h pollution on Mingw64
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Dec 2014 17:44:22 +0000 (17:44 +0000)
committerEric Blake <eblake@redhat.com>
Mon, 5 Jan 2015 23:31:52 +0000 (16:31 -0700)
A previous commit attempted to workaround pollution in the
Mingw64 pthreads.h header file

  commit d5fec6c22f03c6a73d62260c9ce091c10c0a9cbd
  Author: Eric Blake <eblake@redhat.com>
  Date:   Wed Jan 22 20:39:45 2014 -0700

    pthread: work around winpthread header pollution on mingw

It activated its workaround based on existance of the strtok_r
wrapper in pthreads.h. As luck would have it, latest Mingw64
headers removed the strtok_r wrapper from pthreads.h, but left
all the others. So the gnulib workaround was not activated.

Change the configure check to look for several of the broken
wrappers, instead of just strtok_r

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/pthread.m4

index 9f5611d03bf96e6c64dc0f41266090b9c92f2198..36fbdf2bfd341f7543f9060230769adfaf059ed6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
+
+       pthread: detect git mingw builds with only partial pollution
+       * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
+       pollution, as seen temporarily in Fedora 21.
+
 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        lib-symbol-versions: cache script check
index eaeb2f37204cb6f8056c3c8aa784ba63dd91c33a..b8e2c4c5ae817e727599e75bdbcb875eeb524641 100644 (file)
@@ -1,4 +1,4 @@
-# pthread.m4 serial 9
+# pthread.m4 serial 10
 dnl Copyright (C) 2009-2015 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,7 @@ AC_DEFUN([gl_PTHREAD_CHECK],
       [AC_COMPILE_IFELSE(
         [AC_LANG_PROGRAM(
           [[#include <pthread.h>
-            #ifdef strtok_r
+            #if defined strtok_r || defined localtime_r
             #error
              break me
             #endif