Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115859069
D28317.id83648.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28317.id83648.diff
View Options
diff --git a/usr.bin/localedef/bootstrap/xlocale.h b/usr.bin/localedef/bootstrap/xlocale.h
--- a/usr.bin/localedef/bootstrap/xlocale.h
+++ b/usr.bin/localedef/bootstrap/xlocale.h
@@ -35,8 +35,21 @@
*
* $FreeBSD$
*/
+
+#pragma once
+
/*
- * This header only exists to avoid pulling in the host xlocale.h from
- * the libc-internal headers. This is required since newer Linux GLibc no
- * longer includes xlocale.h and older versions include an incompatible header.
+ * This header only exists to avoid pulling in the host xlocale.h from the
+ * libc-internal headers. New versions of glibc include bits/types/locale.h
+ * from stdlib.h and so get their own locale_t (and don't provide xlocale.h),
+ * but older versions include xlocale.h and expect to have a __locale_t. Thus
+ * we provide dummy definitions of both so the (unused) prototypes don't give
+ * errors.
*/
+
+#ifdef locale_t
+#error "Dummy xlocale.h included inside bootstrapping namespace context"
+#endif
+
+typedef struct __dummy_host_locale *__locale_t;
+typedef __locale_t locale_t;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 4:11 PM (14 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17860761
Default Alt Text
D28317.id83648.diff (1 KB)
Attached To
Mode
D28317: localedef: Fix bootstrapping on Ubuntu 16.04
Attached
Detach File
Event Timeline
Log In to Comment