mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Include "setlocale.h" for _PathLocale like other parts already did
Should go in 2.2
This commit is contained in:
parent
1573315810
commit
b195036087
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22402
@ -42,6 +42,7 @@ static const char sccsid[] = "@(#)strftime.c 5.4 (Berkeley) 3/14/89";
|
||||
#include <fcntl.h>
|
||||
#include <locale.h>
|
||||
#include <sys/stat.h>
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user