summaryrefslogtreecommitdiffstats
path: root/lib/qsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/qsort.c')
-rw-r--r--lib/qsort.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/qsort.c b/lib/qsort.c
index e771dcfcf2..1cc0d31c9e 100644
--- a/lib/qsort.c
+++ b/lib/qsort.c
@@ -16,6 +16,7 @@
* bcc and gcc. */
#include <linux/types.h>
+#include <exports.h>
#if 0
#include <assert.h>
#else
@@ -67,3 +68,8 @@ void qsort(void *base,
} while (wgap);
}
}
+
+int strcmp_compar(const void *p1, const void *p2)
+{
+ return strcmp(*(const char **)p1, *(const char **)p2);
+}
OpenPOWER on IntegriCloud