summaryrefslogtreecommitdiff
path: root/portability/stdlib.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-03-21 13:04:36 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-03-21 14:09:06 +0200
commit925b435faf6c5c3971b74c00298f3dd679256d3d (patch)
tree75d93f3996f5cbec05903e2dc6ef17ef9c85744a /portability/stdlib.h
parentc6b9297bcb1c9d5ff11fceb0a453ec4daa1ee6dd (diff)
downloadapk-tools-925b435faf6c5c3971b74c00298f3dd679256d3d.tar.gz
apk-tools-925b435faf6c5c3971b74c00298f3dd679256d3d.tar.bz2
apk-tools-925b435faf6c5c3971b74c00298f3dd679256d3d.tar.xz
apk-tools-925b435faf6c5c3971b74c00298f3dd679256d3d.zip
portability: add qsort_r
Diffstat (limited to 'portability/stdlib.h')
-rw-r--r--portability/stdlib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/portability/stdlib.h b/portability/stdlib.h
new file mode 100644
index 0000000..6254c7c
--- /dev/null
+++ b/portability/stdlib.h
@@ -0,0 +1,7 @@
+#include_next <stdlib.h>
+
+#ifdef NEED_QSORT_R
+void qsort_r(void *base, size_t nmemb, size_t size,
+ int (*compar)(const void *, const void *, void *),
+ void *arg);
+#endif