From e2a17344dc543c9c652cfe2b14cd2709dd6cfd22 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 28 Aug 2023 04:39:16 -0700 Subject: just kernel32 things (#4354) * just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/bun.js/module_loader.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bun.js/module_loader.zig') diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig index 755e16647..e165b20fa 100644 --- a/src/bun.js/module_loader.zig +++ b/src/bun.js/module_loader.zig @@ -31,7 +31,7 @@ const ServerEntryPoint = bun.bundler.ServerEntryPoint; const js_printer = bun.js_printer; const js_parser = bun.js_parser; const js_ast = bun.JSAst; -const http = @import("../http.zig"); +const http = @import("../bun_dev_http_server.zig"); const NodeFallbackModules = @import("../node_fallbacks.zig"); const ImportKind = ast.ImportKind; const Analytics = @import("../analytics/analytics_thread.zig"); @@ -408,7 +408,7 @@ pub const RuntimeTranspilerStore = struct { defer { if (should_close_input_file_fd and input_file_fd != 0) { - _ = bun.JSC.Node.Syscall.close(input_file_fd); + _ = bun.sys.close(input_file_fd); input_file_fd = 0; } } @@ -1444,7 +1444,7 @@ pub const ModuleLoader = struct { }; defer { if (should_close_input_file_fd and input_file_fd != 0) { - _ = bun.JSC.Node.Syscall.close(input_file_fd); + _ = bun.sys.close(input_file_fd); input_file_fd = 0; } } -- cgit v1.2.3