]> git.sur5r.net Git - u-boot/blobdiff - lib/qsort.c
arm/km: disable ls (through jffs2 support)
[u-boot] / lib / qsort.c
index e771dcfcf2756504bc53916cd0366643ff70a81d..1cc0d31c9ea2ae0561027ea5399393c7945b896a 100644 (file)
@@ -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);
+}