Hello,

On 07/21/14 23:21, Stephen Kitt wrote:
> Source: mingw-w64
> Source-Version: 3.1.0-3
> 
> We believe that the bug you reported is fixed in the latest version of
> mingw-w64, which is due to be installed in the Debian FTP archive.
> 
> A summary of the changes between this version and the previous one is
> attached.

> Changes:
>  mingw-w64 (3.1.0-3) unstable; urgency=medium
>  .
>    * Merge upstream implementation of strtok_r, so it's available on
>      Windows XP. Thanks to Gianluigi Tiesi for pointing out the problem,
>      and to Jonathan Young for pointing out that he'd fixed it upstream.
>      (Closes: #755448.)

This change breaks VLC, as the strtok_r prototype is not available anymore.

According to:
http://anonscm.debian.org/gitweb/?p=collab-maint/mingw-w64.git;a=blobdiff;f=debian/patches/strtok_r.patch;h=95e4b5e974f19b5725ad3bd349ac74ec6b2d994d;hp=c4aa476dd10754657fe752ee1aeab9cfa4871a83;hb=8625b8bcfd8a66d92ddbb76391e25ddf9e077857;hpb=362f462455a593a5316c72fdf39dc6df342b3da5
the prototype is only defined under the condition:
#if defined (_SVID_SOURCE) || defined (_BSD_SOURCE) || (_POSIX_C_SOURCE
>= 1) || defined(_XOPEN_SOURCE) || defined (_POSIX_SOURCE)

However autoconf defines neither of these, but only _GNU_SOURCE

glibc's features.h defines all the above features if _GNU_SOURCE is defined,
but mingw-w64 does not.

I suggest removing the ifdef altogether, as strtok_r will always be
available.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to