Page MenuHomeFreeBSD

D45350.diff
No OneTemporary

D45350.diff

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

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)

Event Timeline