summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-23 02:25:53 +0000
committerache <ache@FreeBSD.org>1995-10-23 02:25:53 +0000
commit973d5505acab048324c8105c54250efef556969f (patch)
tree0516c8f84b486eac16bb39bf23a2ac5b3b352768 /lib
parentb1a28fda3c0a3f2943f4dd0f1ce4889dc4548dc5 (diff)
downloadFreeBSD-src-973d5505acab048324c8105c54250efef556969f.zip
FreeBSD-src-973d5505acab048324c8105c54250efef556969f.tar.gz
Use fake (empty) startup_setlocale for XPG4
Diffstat (limited to 'lib')
-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