| ... | ... | @@ -329,7 +329,7 @@ fn findNativeIncludeDirPosix(self: *LibCInstallation, args: FindNativeOptions) F |
| 329 | 329 | defer search_dir.close(); |
| 330 | 330 | |
| 331 | 331 | if (self.include_dir == null) { |
| 332 | | if (search_dir.accessZ(include_dir_example_file, .{})) |_| { |
| 332 | if (search_dir.access(include_dir_example_file, .{})) |_| { |
| 333 | 333 | self.include_dir = try allocator.dupeZ(u8, search_path); |
| 334 | 334 | } else |err| switch (err) { |
| 335 | 335 | error.FileNotFound => {}, |
| ... | ... | @@ -338,7 +338,7 @@ fn findNativeIncludeDirPosix(self: *LibCInstallation, args: FindNativeOptions) F |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | if (self.sys_include_dir == null) { |
| 341 | | if (search_dir.accessZ(sys_include_dir_example_file, .{})) |_| { |
| 341 | if (search_dir.access(sys_include_dir_example_file, .{})) |_| { |
| 342 | 342 | self.sys_include_dir = try allocator.dupeZ(u8, search_path); |
| 343 | 343 | } else |err| switch (err) { |
| 344 | 344 | error.FileNotFound => {}, |
| ... | ... | @@ -382,7 +382,7 @@ fn findNativeIncludeDirWindows( |
| 382 | 382 | }; |
| 383 | 383 | defer dir.close(); |
| 384 | 384 | |
| 385 | | dir.accessZ("stdlib.h", .{}) catch |err| switch (err) { |
| 385 | dir.access("stdlib.h", .{}) catch |err| switch (err) { |
| 386 | 386 | error.FileNotFound => continue, |
| 387 | 387 | else => return error.FileSystem, |
| 388 | 388 | }; |
| ... | ... | @@ -429,7 +429,7 @@ fn findNativeCrtDirWindows( |
| 429 | 429 | }; |
| 430 | 430 | defer dir.close(); |
| 431 | 431 | |
| 432 | | dir.accessZ("ucrt.lib", .{}) catch |err| switch (err) { |
| 432 | dir.access("ucrt.lib", .{}) catch |err| switch (err) { |
| 433 | 433 | error.FileNotFound => continue, |
| 434 | 434 | else => return error.FileSystem, |
| 435 | 435 | }; |
| ... | ... | @@ -496,7 +496,7 @@ fn findNativeKernel32LibDir( |
| 496 | 496 | }; |
| 497 | 497 | defer dir.close(); |
| 498 | 498 | |
| 499 | | dir.accessZ("kernel32.lib", .{}) catch |err| switch (err) { |
| 499 | dir.access("kernel32.lib", .{}) catch |err| switch (err) { |
| 500 | 500 | error.FileNotFound => continue, |
| 501 | 501 | else => return error.FileSystem, |
| 502 | 502 | }; |
| ... | ... | @@ -531,7 +531,7 @@ fn findNativeMsvcIncludeDir( |
| 531 | 531 | }; |
| 532 | 532 | defer dir.close(); |
| 533 | 533 | |
| 534 | | dir.accessZ("vcruntime.h", .{}) catch |err| switch (err) { |
| 534 | dir.access("vcruntime.h", .{}) catch |err| switch (err) { |
| 535 | 535 | error.FileNotFound => return error.LibCStdLibHeaderNotFound, |
| 536 | 536 | else => return error.FileSystem, |
| 537 | 537 | }; |