diff options
| author | guo <[email protected]> | 2022-01-04 18:53:26 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-04 18:53:26 +0800 |
| commit | 126f80e2e632626882de18e1820718dac4b1f625 (patch) | |
| tree | 865997c82fb24bc4d68f1b880f39d5885f3bea3a /components/libc/compilers/common/sys | |
| parent | 9021a3117ca16b87ece98c72a698afe0123aad9f (diff) | |
| parent | ee93914d78987bbca537db3e7cb3f8a9fbaefe6c (diff) | |
Merge pull request #5469 from mysterywolf/simulator
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" { |
