[vlc-devel] [PATCH] compat: work-around busted FreeBSD qsort_r()

Rémi Denis-Courmont remi at remlab.net
Sat Jan 19 18:21:33 CET 2019


My understanding is that POSIX.next will standardize on the GNU/libc prototype, regardless of historical precedence. But of course, we cannot know for sure until the spec is out.

Le 19 janvier 2019 18:56:25 GMT+02:00, David Fuhrmann <david.fuhrmann at gmail.com> a écrit :
>Hi,
>
>I checked all FreeBSD Versions 3 to 12, and macOS SDKs 10.7, 10.12,
>10.13 and 10.14. All have the same include guard, and that since ages.
>So I think it is safe to assume that it stays as it is for now.
>
>BTW, qsort_r exists in its FreeBSD variant since ages already.
>According to
>https://stackoverflow.com/questions/39560773/different-declarations-of-qsort-r-on-mac-and-linux,
>FreeBSD introduced its variant in 2002, whereas Linux added the other
>variant in 2008.
>
>Maybe VLC should not use such a function directly with such a long
>history of incompatible signature, and where the FreeBSD variant is
>even older?
>And from my understanding, qsort_r is in no standard as of today
>either.
>
>Best,
>David
>
>> Am 19.01.2019 um 16:35 schrieb Rémi Denis-Courmont <remi at remlab.net>:
>> 
>> 	Hey,
>> 
>> Are you sure that we can assume the stdlib.h guard on all affected
>platforms? 
>> It definitely cannot be done on all platforms - but that's not really
>the 
>> question.
>> 
>> Br,
>> 
>> 
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190119/c1671b4a/attachment.html>


More information about the vlc-devel mailing list