Page MenuHomeFreeBSD

D49893.diff
No OneTemporary

D49893.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
@@ -38,9 +38,12 @@
#include_next <string.h>
/*
- * 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 provided by macOS 15.4 and later. However, there is
+ * no good way to detect the current host version at compile time, so
+ * provide an inline definition under an alternate name.
*/
+#define strchrnul(p, ch) __freebsd_strchrnul(p, ch)
+
static inline char *
strchrnul(const char *p, int ch)
{

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 24, 3:57 AM (6 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27893564
Default Alt Text
D49893.diff (715 B)

Event Timeline