Module Name: src
Committed By: joerg
Date: Fri May 17 13:00:40 UTC 2013
Modified Files:
src/include: locale.h
Log Message:
Only provide LC_C_LOCALE under _NETBSD_SOURCE.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 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.22 src/include/locale.h:1.23
--- src/include/locale.h:1.22 Fri May 17 12:55:57 2013
+++ src/include/locale.h Fri May 17 13:00:40 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: locale.h,v 1.22 2013/05/17 12:55:57 joerg Exp $ */
+/* $NetBSD: locale.h,v 1.23 2013/05/17 13:00:40 joerg Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -108,12 +108,19 @@ locale_t newlocale(int, const char *, lo
#ifndef _LIBC
extern struct _locale _lc_global_locale;
-extern const struct _locale _lc_C_locale;
#else
extern __dso_protected struct _locale _lc_global_locale;
-extern __dso_protected const struct _locale _lc_C_locale;
#endif
#define LC_GLOBAL_LOCALE (&_lc_global_locale)
+#endif
+#endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */
+
+#if defined(_NETBSD_SOURCE)
+# ifndef _LIBC
+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