From 2a384c4a8452ce4ff36bc0cb6b66a00b03452515 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 4 Apr 2004 13:31:26 +0000 Subject: [PATCH] Protect inclusion of by ifdef. Declare time() if HAVE_DECL_TIME is 0 --- src/system.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.45.2