Another update from Larry:
[oweals/busybox.git] / dutmp.c
diff --git a/dutmp.c b/dutmp.c
index 26253b44551a2bc356ea5fd0f54ab482673e872b..5732539d23f9e6b7c0c19065dcb61d37b8279476 100644 (file)
--- a/dutmp.c
+++ b/dutmp.c
@@ -20,9 +20,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_io_error
-#include "messages.c"
 
 extern int dutmp_main(int argc, char **argv)
 {
@@ -42,7 +39,7 @@ extern int dutmp_main(int argc, char **argv)
        }
 
 /* Kludge around the fact that the binary format for utmp has changed. */
-#if __GNU_LIBRARY__ < 5
+#if __GNU_LIBRARY__ < 5 || defined __UCLIBC__
        /* Linux libc5 */
        while (read(file, (void*)&ut, sizeof(struct utmp))) {
                printf("%d|%d|%s|%s|%s|%s|%s|%lx\n",