From e703f7ed4204c0e73dbc72be18a3234cc4eba97b Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Tue, 10 Apr 2001 19:03:03 +0000
Subject: Ha.  Regression testing found a bug with uClibc support.  Fixed. 
 -Erik

---
 dutmp.c           | 2 +-
 miscutils/dutmp.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dutmp.c b/dutmp.c
index 26253b445..df5ee13fb 100644
--- 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",
diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c
index 26253b445..df5ee13fb 100644
--- a/miscutils/dutmp.c
+++ b/miscutils/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",
-- 
cgit v1.2.3