Module Name: src
Committed By: joerg
Date: Thu Apr 18 16:25:56 UTC 2013
Modified Files:
src/distrib/utils/libhack: localeconv.c
Log Message:
Override localeconv_l as well, when providing an alternative
implementation of localeconv.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/distrib/utils/libhack/localeconv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/libhack/localeconv.c
diff -u src/distrib/utils/libhack/localeconv.c:1.3 src/distrib/utils/libhack/localeconv.c:1.4
--- src/distrib/utils/libhack/localeconv.c:1.3 Sat Jul 26 17:07:36 2003
+++ src/distrib/utils/libhack/localeconv.c Thu Apr 18 16:25:55 2013
@@ -1,10 +1,11 @@
-/* $NetBSD: localeconv.c,v 1.3 2003/07/26 17:07:36 salo Exp $ */
+/* $NetBSD: localeconv.c,v 1.4 2013/04/18 16:25:55 joerg Exp $ */
/*
* Written by J.T. Conklin <[email protected]>.
* Public domain.
*/
+#define _NETBSD_SOURCE
#include <sys/cdefs.h>
#include <sys/localedef.h>
#include <locale.h>
@@ -20,7 +21,7 @@
* Fixed in the "C" locale.
*/
struct lconv *
-localeconv()
+localeconv(void)
{
static struct lconv ret = {
/* char *decimal_point */ ".",
@@ -45,3 +46,10 @@ localeconv()
return (&ret);
}
+
+/* ARGSUSED */
+struct lconv *
+localeconv_l(locale_t loc)
+{
+ return localeconv();
+}