From e4f9a3041af7fc0c8fceb0bf15b14b51d54d3869 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Tue, 20 Apr 2021 22:05:23 +0200 Subject: [PATCH] std: Use stat definition with 32bit *time fields We're not ready for Y38K yet. --- lib/std/os/bits/linux/powerpc.zig | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/std/os/bits/linux/powerpc.zig b/lib/std/os/bits/linux/powerpc.zig index baa6a57bcf..158a5dab3d 100644 --- a/lib/std/os/bits/linux/powerpc.zig +++ b/lib/std/os/bits/linux/powerpc.zig @@ -557,18 +557,10 @@ pub const kernel_stat = extern struct { size: off_t, blksize: blksize_t, blocks: blkcnt_t, - __atim32: timespec32, - __mtim32: timespec32, - __ctim32: timespec32, - __unused: [2]u32, atim: timespec, mtim: timespec, ctim: timespec, - - const timespec32 = extern struct { - tv_sec: i32, - tv_nsec: i32, - }; + __unused: [2]u32, pub fn atime(self: @This()) timespec { return self.atim;