Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177892716
D45373.1795531280.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1012 B
Referenced Files
None
Subscribers
None
D45373.1795531280.diff
View Options
diff --git a/tools/build/cross-build/include/linux/fcntl.h b/tools/build/cross-build/include/linux/fcntl.h
--- a/tools/build/cross-build/include/linux/fcntl.h
+++ b/tools/build/cross-build/include/linux/fcntl.h
@@ -44,3 +44,10 @@
#include "__unused_workaround_end.h"
#include <sys/file.h>
+
+/*
+ * On FreeBSD fcntl.h indirectly brings in cdefs.h. On Linux with musl, it does
+ * not. It's needed in our fcntl.h for the cross build since we use
+ * __BEGIN_DECLS and __END_DECLS from it there.
+ */
+#include <sys/cdefs.h>
diff --git a/tools/build/fcntl.h b/tools/build/fcntl.h
--- a/tools/build/fcntl.h
+++ b/tools/build/fcntl.h
@@ -29,13 +29,6 @@
#include_next <fcntl.h>
-/*
- * On FreeBSD fcntl.h indirectly brings in cdefs.h. On Linux with musl, it does
- * not. Unconditionally inlude it here since there's no harm in including it
- * multiple times since we use __BEGIN_DECLS and __END_DECLS from it below.
- */
-#include <sys/cdefs.h>
-
struct spacectl_range {
off_t r_offset;
off_t r_len;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 24, 2:41 PM (19 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41956885
Default Alt Text
D45373.1795531280.diff (1012 B)
Attached To
Mode
D45373: cross-build: Move fcntl.h workaround to Linux specific file
Attached
Detach File
Event Timeline