diff --git a/lib/std/process.zig b/lib/std/process.zig index 6c9ae4eb50..c2d18086fc 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -1660,7 +1660,7 @@ pub fn getBaseAddress() usize { const phdr = getauxval(std.elf.AT_PHDR); return phdr - @sizeOf(std.elf.Ehdr); }, - .macos => { + .driverkit, .ios, .macos, .tvos, .visionos, .watchos => { return @intFromPtr(&std.c._mh_execute_header); }, .windows => return @intFromPtr(windows.kernel32.GetModuleHandleW(null)),