diff --git a/tools/build/cross-build/include/mac/string.h b/tools/build/cross-build/include/mac/string.h index 5e7823a5f291..3f9ec4935a37 100644 --- a/tools/build/cross-build/include/mac/string.h +++ b/tools/build/cross-build/include/mac/string.h @@ -51,7 +51,7 @@ strchrnul(const char *p, int ch) c = ch; for (;; ++p) { if (*p == c || *p == '\0') - return ((char *)p); + return (__DECONST(char *, p)); } /* NOTREACHED */ }