aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-10-23 02:25:53 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-10-23 02:25:53 +0000
commit24c9187962b92fa6d49a92db7af005e783c9f3f2 (patch)
tree0516c8f84b486eac16bb39bf23a2ac5b3b352768 /lib/libc
parent2c4488fce37090fbfb35b31f1a0390f4fa6da3fb (diff)
downloadsrc-24c9187962b92fa6d49a92db7af005e783c9f3f2.tar.gz
src-24c9187962b92fa6d49a92db7af005e783c9f3f2.zip
Use fake (empty) startup_setlocale for XPG4
Notes
Notes: svn path=/head/; revision=11702
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 cb5da653e4e5..11f21398e76f 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()