aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-07-03 05:32:02 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-07-03 05:32:02 +0000
commita350628a729569e3427db71570d86a1e31631c27 (patch)
treece49f1a393a2f96f4ecedb1ccfc7e6eaff607fa1
parent869511a239daa2d9253ecaa0130fcac0f4e2227d (diff)
downloadbusybox-w32-a350628a729569e3427db71570d86a1e31631c27.tar.gz
busybox-w32-a350628a729569e3427db71570d86a1e31631c27.tar.bz2
busybox-w32-a350628a729569e3427db71570d86a1e31631c27.zip
Patch from Danny Lepage <danny.lepage@cognicase.com> to fix
dutmp for uClibc. git-svn-id: svn://busybox.net/trunk/busybox@4993 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--miscutils/dutmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c
index cce260ca4..cec5629c8 100644
--- a/miscutils/dutmp.c
+++ b/miscutils/dutmp.c
@@ -39,7 +39,7 @@ extern int dutmp_main(int argc, char **argv)
39 } 39 }
40 40
41/* Kludge around the fact that the binary format for utmp has changed. */ 41/* Kludge around the fact that the binary format for utmp has changed. */
42#if __GNU_LIBRARY__ < 5 || defined __UCLIBC__ 42#if __GNU_LIBRARY__ < 5
43 /* Linux libc5 */ 43 /* Linux libc5 */
44 while (read(file, (void*)&ut, sizeof(struct utmp))) { 44 while (read(file, (void*)&ut, sizeof(struct utmp))) {
45 printf("%d|%d|%s|%s|%s|%s|%s|%lx\n", 45 printf("%d|%d|%s|%s|%s|%s|%s|%lx\n",