diff options
| author | Meco Man <[email protected]> | 2022-01-03 09:38:04 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2022-01-03 13:33:03 -0500 |
| commit | ee93914d78987bbca537db3e7cb3f8a9fbaefe6c (patch) | |
| tree | 00cf26d1e6351d4c964499b4de4554e2103954bc /components/libc/compilers/common/sys | |
| parent | 09c089d51194ccaed497fc43d8f4db007ea34d80 (diff) | |
[libc] 处理在win32平台下的编译问题
Diffstat (limited to 'components/libc/compilers/common/sys')
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index a285139649..55c60d716e 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -15,6 +15,9 @@ #include <sys/types.h> #include <stdint.h> #include <time.h> +#ifdef _WIN32 +#include <winsock.h> /* for struct timeval */ +#endif #ifdef __cplusplus extern "C" { |
