diff options
Diffstat (limited to 'user/networkmanager/qsort_r.patch')
-rw-r--r-- | user/networkmanager/qsort_r.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/user/networkmanager/qsort_r.patch b/user/networkmanager/qsort_r.patch new file mode 100644 index 000000000..39235787f --- /dev/null +++ b/user/networkmanager/qsort_r.patch @@ -0,0 +1,18 @@ +From: Gottox @ Void + +diff --git shared/systemd/src/basic/sort-util.h shared/systemd/src/basic/sort-util.h +index e029f8646..168735087 100644 +--- a/shared/systemd/src/basic/sort-util.h ++++ b/shared/systemd/src/basic/sort-util.h +@@ -67,7 +67,11 @@ static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, __compar_ + return; + + assert(base); ++#ifdef __GLIBC__ + qsort_r(base, nmemb, size, compar, userdata); ++#else ++ g_qsort_with_data(base, nmemb, size, compar, userdata); ++#endif + } + + #define typesafe_qsort_r(p, n, func, userdata) \ |