Fix all implicit declarations

AC_HEADER_TIME is only needed if you need to include time.h and
sys/time.h at the same time.

The truth is this codebase is an unholy mess but at least this fixes
the warnings.
This commit is contained in:
James Le Cuirot
2020-04-26 20:20:16 +01:00
parent cf6e360a7e
commit d91710ba03
7 changed files with 26 additions and 25 deletions

View File

@@ -1,12 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#define WB_DISKMAGIC 0xe310
#define WB_DISKVERSION 1