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