Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102635358
D45350.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
D45350.diff
View Options
diff --git a/tools/build/cross-build/include/linux/sys/types.h b/tools/build/cross-build/include/linux/sys/types.h
--- a/tools/build/cross-build/include/linux/sys/types.h
+++ b/tools/build/cross-build/include/linux/sys/types.h
@@ -37,6 +37,13 @@
#include_next <sys/types.h>
+/*
+ * stddef.h for both gcc and clang will define __size_t when size_t has
+ * been defined (except on *BSD where it doesn't touch __size_t). So if
+ * we're building on Linux, we know that if that's not defined, we have
+ * to typedef __size_t for FreeBSD's use of __size_t in places to work
+ * during bootstrapping.
+ */
#ifndef __size_t
typedef __SIZE_TYPE__ __size_t;
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 3:26 AM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14652432
Default Alt Text
D45350.diff (665 B)
Attached To
Mode
D45350: cross-tools: Document a rather bizarre looking construct
Attached
Detach File
Event Timeline
Log In to Comment