fix syscall not declared error on ubuntu

This commit is contained in:
Chunting gu
2021-08-03 17:03:17 +08:00
parent a0c31be90e
commit f6e25ab19a
+2 -1
View File
@@ -16,7 +16,8 @@
#include <Windows.h> #include <Windows.h>
#else #else
// For getting thread ID. // For getting thread ID.
#include <sys/syscall.h> #include <unistd.h>
#include <sys/syscall.h> // For SYS_xxx definitions
#include <sys/types.h> #include <sys/types.h>
#endif // defined(_WIN32) || defined(_WIN64) #endif // defined(_WIN32) || defined(_WIN64)