Module Name: src Committed By: christos Date: Thu Mar 17 17:36:32 UTC 2016
Modified Files: src/include: locale.h Log Message: disable dso protected for clang now, so that packages can be built. (again this is the binutils warning about copy relocations on protected objects) To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/include/locale.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/locale.h diff -u src/include/locale.h:1.26 src/include/locale.h:1.27 --- src/include/locale.h:1.26 Mon Mar 7 22:58:31 2016 +++ src/include/locale.h Thu Mar 17 13:36:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: locale.h,v 1.26 2016/03/08 03:58:31 christos Exp $ */ +/* $NetBSD: locale.h,v 1.27 2016/03/17 17:36:32 christos Exp $ */ /* * Copyright (c) 1991, 1993 @@ -106,12 +106,20 @@ void freelocale(locale_t); struct lconv *localeconv_l(locale_t); locale_t newlocale(int, const char *, locale_t); +#ifdef __clang__ +extern struct _locale _lc_global_locale; +#else extern __dso_protected struct _locale _lc_global_locale; +#endif #define LC_GLOBAL_LOCALE (&_lc_global_locale) #endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */ #if defined(_NETBSD_SOURCE) +#ifdef __clang__ +extern const struct _locale _lc_C_locale; +#else extern __dso_protected const struct _locale _lc_C_locale; +#endif #define LC_C_LOCALE ((locale_t)__UNCONST(&_lc_C_locale)) #endif __END_DECLS