bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] time: work with mingw + pthreads-win32 library


From: Eric Blake
Subject: Re: [PATCH] time: work with mingw + pthreads-win32 library
Date: Thu, 03 Jun 2010 07:55:05 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4

On 06/03/2010 03:57 AM, Bruno Haible wrote:
> Hi Eric,
> 
>>  # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@
>>  #  if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
>>  #   include <sys/time.h>
>> +#  elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@
>> +#   include <pthread.h>
>>  #  else
> 
> Now, gnulib - not the user's code - is including this <pthread.h>, of
> which you just determined that it contains a broken strtok_r and others.
> I think it would reduce the damage by doing a #undef strtok_r. Like this.
> Do you agree?

Yes, looks reasonable - mingw is the only platform we know of where we
would be including <pthread.h>, so we can be reasonably sure that it is
the likely-broken pthread.h from pthreads-win32.

> +/* The pthread-win32 <pthread.h> also defines a couple of broken macros.  */

s/pthread-win32/pthreads-win32/

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]