aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-17 18:44:15 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-17 18:44:15 +0000
commit3132131d6265f6107c652f634c8b4a3e006fb46f (patch)
tree1d18bbba8f8a1d78d7ff13e7a87ee2aab165125f /coreutils
parent0055f41a9885374ff57a4b90af63aaac6dd01f58 (diff)
downloadbusybox-w32-3132131d6265f6107c652f634c8b4a3e006fb46f.tar.gz
busybox-w32-3132131d6265f6107c652f634c8b4a3e006fb46f.tar.bz2
busybox-w32-3132131d6265f6107c652f634c8b4a3e006fb46f.zip
Reworked the source so it will compile and run under glibc 2.0.7
and linux kernel 2.0.36 (though the dubious reasons why someone would want to do that defy imagination ;) -Erik git-svn-id: svn://busybox.net/trunk/busybox@243 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dd.c2
-rw-r--r--coreutils/du.c5
-rw-r--r--coreutils/tail.c1
3 files changed, 3 insertions, 5 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 90c1004fa..bc01eedbf 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -33,7 +33,7 @@
33#include <stdio.h> 33#include <stdio.h>
34#include <fcntl.h> 34#include <fcntl.h>
35#include <errno.h> 35#include <errno.h>
36#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1) 36#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
37#include <inttypes.h> 37#include <inttypes.h>
38#else 38#else
39typedef unsigned long long int uintmax_t; 39typedef unsigned long long int uintmax_t;
diff --git a/coreutils/du.c b/coreutils/du.c
index ed90bc445..ec03afd95 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -44,9 +44,6 @@ static int du_depth = 0;
44static Display *print; 44static Display *print;
45 45
46static void 46static void
47print_null(size_t size, char *filename) { }
48
49static void
50print_normal(size_t size, char *filename) 47print_normal(size_t size, char *filename)
51{ 48{
52 fprintf(stdout, "%-7d %s\n", (size >> 1), filename); 49 fprintf(stdout, "%-7d %s\n", (size >> 1), filename);
@@ -143,4 +140,4 @@ du_main(int argc, char **argv)
143 exit(0); 140 exit(0);
144} 141}
145 142
146/* $Id: du.c,v 1.7 1999/12/16 21:16:47 beppu Exp $ */ 143/* $Id: du.c,v 1.8 1999/12/17 18:44:15 erik Exp $ */
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 7a64c4ca3..697177dc7 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -27,6 +27,7 @@
27#include "internal.h" 27#include "internal.h"
28 28
29#include <stdio.h> 29#include <stdio.h>
30#include <stdarg.h>
30#include <assert.h> 31#include <assert.h>
31#include <errno.h> 32#include <errno.h>
32#include <sys/types.h> 33#include <sys/types.h>