From Debian fix-implicit-declarations.patch

This commit is contained in:
Alexandre Dulaunoy 2013-02-23 10:09:30 +01:00
parent 388c7ffe3b
commit 2dfdcc637c
5 changed files with 10 additions and 1 deletions

2
hash.h
View file

@ -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);

View file

@ -20,6 +20,9 @@
/* GNU dd originally written by Paul Rubin, David MacKenzie, and Stuart Kemp. */
#define _GNU_SOURCE 1
#include <stdio.h>
#include "dcfldd.h"
#include "split.h"
#include <stdlib.h>

View file

@ -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. */

3
util.c
View file

@ -32,6 +32,7 @@
#include "dcfldd.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@ -40,6 +41,8 @@
#include "config.h"
#include <unistd.h>
#include <errno.h>
#include <error.h>
#include "safe-read.h"
int buggy_lseek_support(int fdesc)
{

2
util.h
View file

@ -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);