summaryrefslogtreecommitdiff
path: root/src/locale/duplocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/duplocale.c')
-rw-r--r--src/locale/duplocale.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/locale/duplocale.c b/src/locale/duplocale.c
index 5f01e137..f9fc1ffa 100644
--- a/src/locale/duplocale.c
+++ b/src/locale/duplocale.c
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include <string.h>
#include "locale_impl.h"
+#include "libc.h"
locale_t duplocale(locale_t old)
{
@@ -9,3 +10,5 @@ locale_t duplocale(locale_t old)
if (new && old != LC_GLOBAL_LOCALE) memcpy(new, old, sizeof *new);
return new;
}
+
+weak_alias(duplocale, __duplocale);