| ... | @@ -1863,16 +1863,14 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int; | ... | @@ -1863,16 +1863,14 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int; |
| 1863 | | 1863 | |
| 1864 | pub extern "c" fn if_nametoindex([*:0]const u8) c_int; | 1864 | pub extern "c" fn if_nametoindex([*:0]const u8) c_int; |
| 1865 | | 1865 | |
| 1866 | pub usingnamespace if (builtin.target.isAndroid()) struct { | 1866 | pub const getcontext = if (builtin.target.isAndroid()) |
| 1867 | // android bionic libc does not implement getcontext, | 1867 | @compileError("android bionic libc does not implement getcontext") |
| 1868 | // and std.os.linux.getcontext also cannot be built for | 1868 | else if (native_os == .linux and builtin.target.isMusl()) |
| 1869 | // bionic libc currently. | 1869 | std.os.linux.getcontext |
| 1870 | } else if (native_os == .linux and builtin.target.isMusl()) struct { | 1870 | else |
| 1871 | // musl does not implement getcontext | 1871 | struct { |
| 1872 | pub const getcontext = std.os.linux.getcontext; | 1872 | extern fn getcontext(ucp: *std.os.ucontext_t) c_int; |
| 1873 | } else struct { | 1873 | }.getcontext; |
| 1874 | pub extern "c" fn getcontext(ucp: *std.os.ucontext_t) c_int; | | |
| 1875 | }; | | |
| 1876 | | 1874 | |
| 1877 | pub const max_align_t = if (native_abi == .msvc) | 1875 | pub const max_align_t = if (native_abi == .msvc) |
| 1878 | f64 | 1876 | f64 |