mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-06-01 04:36:26 +00:00
Protect inclusion of <sys/time.h>
by ifdef. Declare time() if HAVE_DECL_TIME is 0
This commit is contained in:
@@ -476,8 +476,10 @@ char *getenv ();
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#ifndef time
|
||||
#if defined(HAVE_SYS_TIME_H) && defined(TIME_WITH_SYS_TIME)
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#if ! HAVE_DECL_TIME
|
||||
time_t time ();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user