[Issue 11520] [bionic] qsort is missing on linux/bionic

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 5 02:54:25 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11520


joakim at airpost.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joakim at airpost.net


--- Comment #2 from joakim at airpost.net 2014-01-05 02:54:17 PST ---
There is a qsort in bionic, looks like it comes from FreeBSD:

https://github.com/android/platform_bionic/blob/master/libc/include/stdlib.h#L91
https://github.com/android/platform_bionic/blob/master/libc/upstream-freebsd/lib/libc/stdlib/qsort.c#L110

There is no qsort_r, which is what Druntime uses on linux by default: my guess
is that's what Elvis tried to use.  But you can use the fallback block from
rt/qsort.d that calls qsort on Android and I believe it should work fine.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list