From: Sergey Poznyakoff Date: Sun, 4 Apr 2004 13:31:26 +0000 (+0000) Subject: Protect inclusion of X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=2a384c4a8452ce4ff36bc0cb6b66a00b03452515;p=chaz%2Ftar Protect inclusion of by ifdef. Declare time() if HAVE_DECL_TIME is 0 --- diff --git a/src/system.h b/src/system.h index eaf8813..d82e8cd 100644 --- a/src/system.h +++ b/src/system.h @@ -476,8 +476,10 @@ char *getenv (); #endif #include -#include -#ifndef time +#if defined(HAVE_SYS_TIME_H) && defined(TIME_WITH_SYS_TIME) +# include +#endif +#if ! HAVE_DECL_TIME time_t time (); #endif