Retrieve gettimeofday() from sys/time.h

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-08-01 14:23:52 +02:00
parent 61f3fadfbf
commit d40ec873a7
4 changed files with 16 additions and 12 deletions

View File

@@ -25,6 +25,10 @@ pub const time = @cImport({
@cInclude("time.h");
});
pub const system_time = @cImport({
@cInclude("sys/time.h");
});
pub const stdlib = @cImport({
@cInclude("stdlib.h");
});