Ha. Regression testing found a bug with uClibc support. Fixed.
authorEric Andersen <andersen@codepoet.org>
Tue, 10 Apr 2001 19:03:03 +0000 (19:03 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 10 Apr 2001 19:03:03 +0000 (19:03 -0000)
 -Erik

dutmp.c
miscutils/dutmp.c

diff --git a/dutmp.c b/dutmp.c
index 26253b4..df5ee13 100644 (file)
--- a/dutmp.c
+++ b/dutmp.c
@@ -42,7 +42,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",
index 26253b4..df5ee13 100644 (file)
@@ -42,7 +42,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",