From f791ae63fafe944aee9ea0dd1148111915e48835 Mon Sep 17 00:00:00 2001 From: Arthur David Olson Date: Thu, 9 Sep 2004 11:35:01 -0400 Subject: [PATCH] asctime_r fix SCCS-file: private.h SCCS-SID: 7.54 --- private.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/private.h b/private.h index 3ccb531..658d8d4 100644 --- a/private.h +++ b/private.h @@ -190,10 +190,21 @@ extern int unlink P((const char * filename)); ** But some newer errno.h implementations define it as a macro. ** Fix the former without affecting the latter. */ + #ifndef errno extern int errno; #endif /* !defined errno */ +/* +** Some time.h implementations don't declare asctime_r. +** Others might define it as a macro. +** Fix the former without affecting the latter. +*/ + +#ifndef asctime_r +extern char * asctime_r(); +#endif + /* ** Private function declarations. */