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
commit d40ec873a7
No known key found for this signature in database
GPG key ID: 3E85EB44F610AD7F
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");
});