ReviewOS

also looking at this

zig-utils/zig-tls

fix: Zig 0.16.0-dev.2565 compatibility

#1
Open glennmichael123 wants to merge main into main
3 files +8 -11
src/handshake_client.zigmodified+2-1
Changes to src/handshake_client.zig
@@ -8,7 +8,8 @@ const Certificate = crypto.Certificate;
88
99// Helper function for Zig 0.16 compatibility
1010fn getMilliTimestamp() i64 {
11 const ts = posix.clock_gettime(.REALTIME) catch return 0;
11 var ts: std.c.timespec = undefined;
12 if (std.c.clock_gettime(.REALTIME, &ts) != 0) return 0;
1213 return ts.sec * 1000 + @divFloor(ts.nsec, std.time.ns_per_ms);
1314}
1415