summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index cb5da65..11f2139 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -175,16 +175,16 @@ setlocale(category, locale)
return (NULL);
}
-#ifndef XPG4
-/* To be compatible with old binaries */
+/* To be compatible with crt0 hack */
void
_startup_setlocale(category, locale)
int category;
const char *locale;
{
+#ifndef XPG4
(void) setlocale(category, locale);
-}
#endif
+}
static char *
currentlocale()
OpenPOWER on IntegriCloud