| ... | @@ -148,12 +148,12 @@ pub const timespec = switch (native_os) { | ... | @@ -148,12 +148,12 @@ pub const timespec = switch (native_os) { |
| 148 | }; | 148 | }; |
| 149 | | 149 | |
| 150 | pub const dev_t = switch (native_os) { | 150 | pub const dev_t = switch (native_os) { |
| 151 | .linux => linux.dev_t, | | |
| 152 | .emscripten => emscripten.dev_t, | 151 | .emscripten => emscripten.dev_t, |
| 153 | .wasi => wasi.device_t, | 152 | .wasi => wasi.device_t, |
| 154 | .openbsd, .haiku, .illumos, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => i32, | 153 | .openbsd, .haiku, .illumos, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => i32, |
| | 154 | // glibc and musl define dev_t as u64, while in Linux kernel it is u32. |
| 155 | // https://github.com/SerenityOS/serenity/blob/b98f537f117b341788023ab82e0c11ca9ae29a57/Kernel/API/POSIX/sys/types.h#L43 | 155 | // https://github.com/SerenityOS/serenity/blob/b98f537f117b341788023ab82e0c11ca9ae29a57/Kernel/API/POSIX/sys/types.h#L43 |
| 156 | .netbsd, .freebsd, .serenity => u64, | 156 | .linux, .netbsd, .freebsd, .serenity => u64, |
| 157 | else => void, | 157 | else => void, |
| 158 | }; | 158 | }; |
| 159 | | 159 | |