Fixes for 0.12.0-dev.2334+aef1da163

This commit is contained in:
Jose Colon Rodriguez
2024-01-27 08:18:18 -04:00
parent a93a0a4f92
commit 1e282e6d7c
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{}); const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{}); const optimize = b.standardOptimizeOption(.{});
_ = b.addModule("io", .{ .source_file = .{ .path = "src/io.zig" } }); _ = b.addModule("io", .{ .root_source_file = .{ .path = "src/io.zig" } });
const main_tests = b.addTest(.{ const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/test.zig" }, .root_source_file = .{ .path = "src/test.zig" },

View File

@ -957,7 +957,7 @@ pub const IO = struct {
if (@hasDecl(os.O, "LARGEFILE")) flags |= os.O.LARGEFILE; if (@hasDecl(os.O, "LARGEFILE")) flags |= os.O.LARGEFILE;
var direct_io_supported = false; var direct_io_supported = false;
var dir_on_tmpfs = try fs_is_tmpfs(dir_fd); const dir_on_tmpfs = try fs_is_tmpfs(dir_fd);
if (dir_on_tmpfs) { if (dir_on_tmpfs) {
log.warn("tmpfs is not durable, and your data will be lost on reboot", .{}); log.warn("tmpfs is not durable, and your data will be lost on reboot", .{});

View File

@ -974,7 +974,7 @@ pub const IO = struct {
} }
// O_EXCL // O_EXCL
var shared_mode: os.windows.DWORD = 0; const shared_mode: os.windows.DWORD = 0;
// O_RDWR // O_RDWR
var access_mask: os.windows.DWORD = 0; var access_mask: os.windows.DWORD = 0;