summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2016-01-29 15:18:33 +0000
committerchristos <christos@NetBSD.org>2016-01-29 15:18:33 +0000
commitee8af538fcbca5532407ba2a7e014f8ae770cafa (patch)
tree27c171e393285b5fb456883ce8a460a1400ccb52 /include
parentab7ab27422dabad8c91225f0a86f26628c057301 (diff)
disable dso protected to work around binutils bug
Diffstat (limited to 'include')
-rw-r--r--include/locale.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/locale.h b/include/locale.h
index cd0028f26a8..27937bd9ba4 100644
--- a/include/locale.h
+++ b/include/locale.h
@@ -1,4 +1,4 @@
-/* $NetBSD: locale.h,v 1.24 2013/05/17 14:11:55 joerg Exp $ */
+/* $NetBSD: locale.h,v 1.25 2016/01/29 15:18:33 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -106,7 +106,7 @@ void freelocale(locale_t);
struct lconv *localeconv_l(locale_t);
locale_t newlocale(int, const char *, locale_t);
-#ifndef _LIBC
+#if 1 // used to be _LIBC, workaround broken binutils
extern struct _locale _lc_global_locale;
#else
extern __dso_protected struct _locale _lc_global_locale;
@@ -115,7 +115,7 @@ extern __dso_protected struct _locale _lc_global_locale;
#endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */
#if defined(_NETBSD_SOURCE)
-# ifndef _LIBC
+# if 1 // used to be _LIBC, workaround broken binutils
extern const struct _locale _lc_C_locale;
# else
extern __dso_protected const struct _locale _lc_C_locale;