瀏覽代碼

compat: Fix win32 clock_gettime prototype

Hugo Beauzée-Luyssen 7 年之前
父節點
當前提交
220e5d70f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compat/clock_gettime.c

+ 1 - 1
compat/clock_gettime.c

@@ -69,7 +69,7 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp) {
 #include <stdint.h>
 #include <time.h>
 
-int clock_gettime(int clk_id, struct timespec *spec) {
+int clock_gettime(clockid_t clk_id, struct timespec *spec) {
     (void)clk_id;
     FILETIME wintime;
     GetSystemTimeAsFileTime(&wintime);