From 2dfdcc637ce406b097bb98f88b48193fbf045d85 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 23 Feb 2013 10:09:30 +0100 Subject: [PATCH] From Debian fix-implicit-declarations.patch --- hash.h | 2 ++ split.c | 3 +++ translate.c | 1 + util.c | 3 +++ util.h | 2 +- 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hash.h b/hash.h index 99df34e..3b2d619 100644 --- a/hash.h +++ b/hash.h @@ -99,6 +99,8 @@ extern void hash_update(hashlist_t *, void *, size_t); extern void hash_update_buf(hashlist_t *, int, int, void *, size_t); extern void hash_remainder(hashlist_t *, int); +extern void init_hashlist(hashlist_t **hashlist, hashflag_t flags); + /* inner hashl_* funcitons are for iterating over hashlists */ extern void hashl_init(hashlist_t *, int); extern void hashl_update(hashlist_t *, int, const void *, size_t); diff --git a/split.c b/split.c index 3e92b69..72db02f 100644 --- a/split.c +++ b/split.c @@ -20,6 +20,9 @@ /* GNU dd originally written by Paul Rubin, David MacKenzie, and Stuart Kemp. */ +#define _GNU_SOURCE 1 +#include + #include "dcfldd.h" #include "split.h" #include diff --git a/translate.c b/translate.c index 2cd0296..11bc295 100644 --- a/translate.c +++ b/translate.c @@ -23,6 +23,7 @@ #include "dcfldd.h" #include "log.h" +#include "util.h" /* Output representation of newline and space characters. They change if we're converting to EBCDIC. */ diff --git a/util.c b/util.c index 861ef9a..c60ef0f 100644 --- a/util.c +++ b/util.c @@ -32,6 +32,7 @@ #include "dcfldd.h" #include +#include #include #include #include @@ -40,6 +41,8 @@ #include "config.h" #include #include +#include +#include "safe-read.h" int buggy_lseek_support(int fdesc) { diff --git a/util.h b/util.h index 1053b2c..e99c298 100644 --- a/util.h +++ b/util.h @@ -41,7 +41,7 @@ extern void time_left(char *, size_t, int); extern int bit_count(register unsigned int); extern void replace_escapes(char *); extern FILE *popen2(const char *, const char *); -extern pclose2(FILE *); +extern int pclose2(FILE *); #if (!HAVE_DECL_STRNDUP) extern char *strndup(const char *, size_t);