diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-01 17:51:22 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-01 17:54:07 -0700 |
| commit | 2264fca03e6ce9203baf52d70825ec3bc32f8262 (patch) | |
| tree | 33cfda1ae8fb44e36cc0b1e6dcdad76063f345d7 /lib/std/os/linux/x86_64.zig | |
| parent | 21171fd71b6b3c69a404176e8fe4620b9768d5a6 (diff) | |
| download | zig-2264fca03e6ce9203baf52d70825ec3bc32f8262.tar.gz zig-2264fca03e6ce9203baf52d70825ec3bc32f8262.zip | |
fix regression on linux with kernel_timespec
I incorrectly assumed that __kernel_timespec was used when not linking
libc, however that is not the case. `std.os.timespec` is used both for
libc and non-libc cases. `__kernel_timespec` is a special struct that is
used only for io_uring.
Diffstat (limited to 'lib/std/os/linux/x86_64.zig')
| -rw-r--r-- | lib/std/os/linux/x86_64.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/std/os/linux/x86_64.zig b/lib/std/os/linux/x86_64.zig index 1a50fb14c6..b6a2d2763f 100644 --- a/lib/std/os/linux/x86_64.zig +++ b/lib/std/os/linux/x86_64.zig @@ -12,6 +12,7 @@ const stack_t = linux.stack_t; const sigset_t = linux.sigset_t; const sockaddr = linux.sockaddr; const socklen_t = linux.socklen_t; +const timespec = linux.timespec; pub fn syscall0(number: SYS) usize { return asm volatile ("syscall" @@ -653,11 +654,6 @@ pub const Stat = extern struct { } }; -pub const timespec = extern struct { - tv_sec: isize, - tv_nsec: isize, -}; - pub const timeval = extern struct { tv_sec: isize, tv_usec: isize, |
