summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2001-04-10 19:03:03 +0000
committerEric Andersen2001-04-10 19:03:03 +0000
commite703f7ed4204c0e73dbc72be18a3234cc4eba97b (patch)
tree556bc9f4ae6cd8b97483b3ee1d6b2a1f04770ded
parentb9af89426458eb11a7e125edefb2b34c9dc6b770 (diff)
downloadbusybox-e703f7ed4204c0e73dbc72be18a3234cc4eba97b.zip
busybox-e703f7ed4204c0e73dbc72be18a3234cc4eba97b.tar.gz
Ha. Regression testing found a bug with uClibc support. Fixed.
-Erik
-rw-r--r--dutmp.c2
-rw-r--r--miscutils/dutmp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/dutmp.c b/dutmp.c
index 26253b4..df5ee13 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 26253b4..df5ee13 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",