summaryrefslogtreecommitdiff
path: root/source/sys_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r--source/sys_unix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c
index 1046440..c6e50de 100644
--- a/source/sys_unix.c
+++ b/source/sys_unix.c
@@ -674,6 +674,11 @@ void Sys_AddDefaultConfig( void ) {
fclose( fp );
}
+void Sys_Sleep( int msec ) {
+ struct timespec req = { 0, msec * 1000000 };
+ nanosleep( &req, NULL );
+}
+
/*
================
Sys_FillAPI