From 81818fd81a39f08439010a6f43fa280559920570 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 7 Feb 1997 13:05:51 +0000 Subject: Include "setlocale.h" for _PathLocale like other parts already did Should go in 2.2 --- lib/libc/stdtime/strftime.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 7e624c5..8329c5a 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -42,6 +42,7 @@ static const char sccsid[] = "@(#)strftime.c 5.4 (Berkeley) 3/14/89"; #include #include #include +#include "setlocale.h" struct lc_time_T { const char * mon[12]; @@ -461,8 +462,6 @@ _add(str, pt, ptlim) return pt; } -extern char *_PathLocale; - int __time_load_locale(const char *name) { @@ -509,7 +508,7 @@ __time_load_locale(const char *name) if (!_PathLocale) goto no_locale; - /* Range checking not needed, name has fixed size */ + /* Range checking not needed, 'name' size is limited */ strcpy(filename, _PathLocale); strcat(filename, "/"); strcat(filename, name); -- cgit v1.1