fatbase

portable OpenBSD tools
git clone git://git.2f30.org/fatbase
Log | Files | Refs

commit 8f3f5a5194184f0d2aed36766a8af31673cca3c4
parent 8a4ad63a6d57d0ba6481f2fbcd9a7f60666e135b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 21 Nov 2014 15:39:19 +0100

fix build with musl, remove deprecated cdefs

Diffstat:
Mdiff/fgetln.c | 1-
Mdiff/xmalloc.c | 1+
Mhexdump/display.c | 1+
Mhexdump/fgetln.c | 1-
Mhexdump/hexdump.h | 2++
Msed/fgetln.c | 1-
6 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/diff/fgetln.c b/diff/fgetln.c @@ -26,7 +26,6 @@ */ #include <stdio.h> -#include <sys/cdefs.h> #include <sys/types.h> #include <string.h> diff --git a/diff/xmalloc.c b/diff/xmalloc.c @@ -18,6 +18,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/types.h> #include "util.h" #include "xmalloc.h" diff --git a/hexdump/display.c b/hexdump/display.c @@ -32,6 +32,7 @@ #include <sys/param.h> #include <sys/stat.h> +#include <sys/types.h> #include <ctype.h> #include <err.h> diff --git a/hexdump/fgetln.c b/hexdump/fgetln.c @@ -26,7 +26,6 @@ */ #include <stdio.h> -#include <sys/cdefs.h> #include <sys/types.h> #include <string.h> diff --git a/hexdump/hexdump.h b/hexdump/hexdump.h @@ -32,6 +32,8 @@ * from: @(#)hexdump.h 8.1 (Berkeley) 6/6/93 */ +#include <sys/types.h> + typedef struct _pr { struct _pr *nextpr; /* next print unit */ #define F_ADDRESS 0x001 /* print offset */ diff --git a/sed/fgetln.c b/sed/fgetln.c @@ -26,7 +26,6 @@ */ #include <stdio.h> -#include <sys/cdefs.h> #include <sys/types.h> #include <string.h>