Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/locale undo the dso protected for clang



details:   https://anonhg.NetBSD.org/src/rev/9827bdb19930
branches:  trunk
changeset: 814379:9827bdb19930
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 17 17:38:14 2016 +0000

description:
undo the dso protected for clang

diffstat:

 lib/libc/locale/global_locale.c |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r e2dcb3316fd8 -r 9827bdb19930 lib/libc/locale/global_locale.c
--- a/lib/libc/locale/global_locale.c   Thu Mar 17 17:36:32 2016 +0000
+++ b/lib/libc/locale/global_locale.c   Thu Mar 17 17:38:14 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: global_locale.c,v 1.23 2016/03/08 04:00:11 christos Exp $ */
+/* $NetBSD: global_locale.c,v 1.24 2016/03/17 17:38:14 christos Exp $ */
 
 /*-
  * Copyright (c)2008 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: global_locale.c,v 1.23 2016/03/08 04:00:11 christos Exp $");
+__RCSID("$NetBSD: global_locale.c,v 1.24 2016/03/17 17:38:14 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -143,7 +143,10 @@
     .numeric_name = _lc_C_locale_name,
 };
 
-__dso_protected struct _locale _lc_global_locale = {
+#ifndef __clang__
+__dso_protected
+#endif
+struct _locale _lc_global_locale = {
     .cache = &_C_cache,
     .query = { _C_LOCALE },
     .part_name = {
@@ -171,7 +174,10 @@
     },
 };
 
-__dso_protected const struct _locale _lc_C_locale = {
+#ifndef __clang__
+__dso_protected
+#endif
+const struct _locale _lc_C_locale = {
     .cache = &_C_cache,
     .query = { _C_LOCALE },
     .part_name = {



Home | Main Index | Thread Index | Old Index