]> git.kaiwu.me - quickjs.git/commitdiff
fixed win32 compilation
authorFabrice Bellard <fabrice@bellard.org>
Tue, 2 Jun 2026 12:17:40 +0000 (14:17 +0200)
committerFabrice Bellard <fabrice@bellard.org>
Tue, 2 Jun 2026 12:17:40 +0000 (14:17 +0200)
quickjs-libc.c

index bd671b69a46e3cd93ae34a26fa0fa79c1baead90..26e9683a5d42088e8c57fd1f71e18878a3118af0 100644 (file)
@@ -4201,8 +4201,10 @@ void js_std_free_handlers(JSRuntime *rt)
     }
 #endif
 
+#if !defined(_WIN32)
     free(ts->poll_fds);
-    
+#endif
+
     free(ts);
     JS_SetRuntimeOpaque(rt, NULL); /* fail safe */
 }