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
This commit is contained in:
Erik Andersen
1999-12-17 18:44:15 +00:00
parent 6da0ae8183
commit 4d1d0113fd
19 changed files with 71 additions and 21 deletions

View File

@@ -33,7 +33,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)
#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
#include <inttypes.h>
#else
typedef unsigned long long int uintmax_t;

View File

@@ -43,9 +43,6 @@ static int du_depth = 0;
static Display *print;
static void
print_null(size_t size, char *filename) { }
static void
print_normal(size_t size, char *filename)
{
@@ -143,4 +140,4 @@ du_main(int argc, char **argv)
exit(0);
}
/* $Id: du.c,v 1.7 1999/12/16 21:16:47 beppu Exp $ */
/* $Id: du.c,v 1.8 1999/12/17 18:44:15 erik Exp $ */

View File

@@ -27,6 +27,7 @@
#include "internal.h"
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <errno.h>
#include <sys/types.h>