summaryrefslogtreecommitdiff
path: root/distrib/utils/libhack
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-04-18 16:25:55 +0000
committerjoerg <joerg@NetBSD.org>2013-04-18 16:25:55 +0000
commit5617f07582a77f02672b9fe87a060a36331ec7cb (patch)
tree505b415feefbca005db2b2b0c512e8abccfb9e4e /distrib/utils/libhack
parentf5804f24fcddfc34cd27397ab0af6ac28928d4cd (diff)
Override localeconv_l as well, when providing an alternative
implementation of localeconv.
Diffstat (limited to 'distrib/utils/libhack')
-rw-r--r--distrib/utils/libhack/localeconv.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/distrib/utils/libhack/localeconv.c b/distrib/utils/libhack/localeconv.c
index 57b7fb2d118..ebe1d7f5f15 100644
--- a/distrib/utils/libhack/localeconv.c
+++ b/distrib/utils/libhack/localeconv.c
@@ -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 <jtc@NetBSD.org>.
* 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();
+}