summary refs log tree commit diff
path: root/locale/findlocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/findlocale.c')
-rw-r--r--locale/findlocale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c
index 004f93b725..75784bab9f 100644
--- a/locale/findlocale.c
+++ b/locale/findlocale.c
@@ -30,8 +30,12 @@
 #include "../iconv/gconv_charset.h"
 
 
+#ifndef SHARED
 /* Constant data defined in setlocale.c.  */
 extern struct locale_data *const _nl_C[] attribute_hidden;
+#else
+# define _nl_C		(_nl_C_locobj.__locales)
+#endif
 
 
 /* For each category we keep a list of records for the locale files