id: abort the build of uclibc is less than 0.9.30
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 16 Nov 2008 15:03:11 +0000 (15:03 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 16 Nov 2008 15:03:11 +0000 (15:03 -0000)
coreutils/id.c

index a75c226ef9772e31315ee832e1b8dd131809ce02..f33f9ab254367221b29db3bfb6799ea12b756eeb 100644 (file)
 
 #include "libbb.h"
 
+#if defined(__UCLIBC_MAJOR__) && (__UCLIBC_MAJOR__ == 0)
+#if (__UCLIBC_MINOR__ < 9) || (__UCLIBC_MINOR__ == 9 &&  __UCLIBC_SUBLEVEL__ < 30)
+#error "Sorry, you need at least uClibc version 0.9.30 for id applet to build"
+#endif
+#endif
+
 enum {
        PRINT_REAL      = (1 << 0),
        NAME_NOT_NUMBER = (1 << 1),