summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2008-07-24 23:22:09 +0200
committerKarel Zak <kzak@redhat.com>2008-08-11 13:39:26 +0200
commit71876a1be437fec90d67bae4d30a4525aa51db4b (patch)
treee7a1949ab5bce24c87e60acf01fa39627e4bbdb7 /include
parent1aa4687e58ba309034c5b448bfb8a7c6cd22d6ac (diff)
downloadutil-linux-old-71876a1be437fec90d67bae4d30a4525aa51db4b.tar.gz
mount: add fallback for versionsort()
I was trying to build util-linux-ng on uclibc and it failed | lomount.c: In function 'looplist_next': | lomount.c:223: error: 'versionsort' undeclared (first use in this function) | lomount.c:223: error: (Each undeclared identifier is reported only once | lomount.c:223: error: for each function it appears in.) | make[2]: *** [mount-lomount.o] Error 1 | which is understood because versionsort is GNU extension and uclibc does not implement it. Reported-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/strverscmp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/strverscmp.h b/include/strverscmp.h
new file mode 100644
index 00000000..23ec6709
--- /dev/null
+++ b/include/strverscmp.h
@@ -0,0 +1,7 @@
+#ifndef STRVERSCMP_H
+#define STRVERSCMP_H
+
+extern int strverscmp (const char *s1, const char *s2);
+extern int versionsort (const void *a, const void *b);
+
+#endif