We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8878bf3 commit 3a3241bCopy full SHA for 3a3241b
CoreFoundation/Base.subproj/CFPlatform.c
@@ -1711,7 +1711,7 @@ int _CFOpenFile(const char *path, int opts) {
1711
}
1712
1713
CF_CROSS_PLATFORM_EXPORT void *_CFReallocf(void *ptr, size_t size) {
1714
-#if TARGET_OS_WIN32 || TARGET_OS_LINUX || defined(__OpenBSD__)
+#if TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI || defined(__OpenBSD__)
1715
void *mem = realloc(ptr, size);
1716
if (mem == NULL && ptr != NULL && size != 0) {
1717
free(ptr);
0 commit comments