Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141966476
D49893.id153881.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
742 B
Referenced Files
None
Subscribers
None
D49893.id153881.diff
View Options
diff --git a/tools/build/cross-build/include/mac/string.h b/tools/build/cross-build/include/mac/string.h
--- a/tools/build/cross-build/include/mac/string.h
+++ b/tools/build/cross-build/include/mac/string.h
@@ -37,9 +37,13 @@
#include_next <string.h>
+#include <Availability.h>
+
+#if __MAC_OS_X_VERSION_MAX_ALLOWED < 150400
/*
- * strchrnul is not provided by macOS and the strchrnul.c implementation
- * can not be compiled on macOS so just provide it inline here
+ * strchrnul is not provided by macOS prior to 15.4 and the
+ * strchrnul.c implementation can not be compiled on macOS so just
+ * provide it inline here
*/
static inline char *
strchrnul(const char *p, int ch)
@@ -53,3 +57,4 @@
}
/* NOTREACHED */
}
+#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 7:13 AM (22 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27645274
Default Alt Text
D49893.id153881.diff (742 B)
Attached To
Mode
D49893: cross-build: Workaround system-provided strchrnul on macOS 15.4+
Attached
Detach File
Event Timeline
Log In to Comment