@@ -88,7 +88,6 @@ pub fn clone(
8888}
8989
9090pub const ARCH = arch_bits .ARCH ;
91- pub const Elf_Symndx = arch_bits .Elf_Symndx ;
9291pub const F = arch_bits .F ;
9392pub const Flock = arch_bits .Flock ;
9493pub const HWCAP = arch_bits .HWCAP ;
@@ -103,8 +102,6 @@ pub const mode_t = arch_bits.mode_t;
103102pub const nlink_t = arch_bits .nlink_t ;
104103pub const off_t = arch_bits .off_t ;
105104pub const time_t = arch_bits .time_t ;
106- pub const timeval = arch_bits .timeval ;
107- pub const timezone = arch_bits .timezone ;
108105pub const user_desc = arch_bits .user_desc ;
109106
110107pub const tls = @import ("linux/tls.zig" );
@@ -1611,6 +1608,8 @@ pub fn flock(fd: fd_t, operation: i32) usize {
16111608 return syscall2 (.flock , @as (usize , @bitCast (@as (isize , fd ))), @as (usize , @bitCast (@as (isize , operation ))));
16121609}
16131610
1611+ pub const Elf_Symndx = if (native_arch == .s390x ) u64 else u32 ;
1612+
16141613// We must follow the C calling convention when we call into the VDSO
16151614const VdsoClockGettime = * align (1 ) const fn (clockid_t , * timespec ) callconv (.c ) usize ;
16161615var vdso_clock_gettime : ? VdsoClockGettime = & init_vdso_clock_gettime ;
@@ -8360,6 +8359,16 @@ pub const POSIX_FADV = switch (native_arch) {
83608359 },
83618360};
83628361
8362+ pub const timeval = extern struct {
8363+ tv_sec : isize ,
8364+ tv_usec : i64 ,
8365+ };
8366+
8367+ pub const timezone = extern struct {
8368+ minuteswest : i32 ,
8369+ dsttime : i32 ,
8370+ };
8371+
83638372/// The timespec struct used by the kernel.
83648373pub const kernel_timespec = extern struct {
83658374 sec : i64 ,
0 commit comments