Page MenuHomeFreeBSD

D49893.id153881.diff
No OneTemporary

D49893.id153881.diff

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

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)

Event Timeline