Skip to content

Commit 126f80e

Browse files
authored
Merge pull request #5469 from mysterywolf/simulator
2 parents 9021a31 + ee93914 commit 126f80e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

components/libc/compilers/common/nogcc/sys/errno.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ defined in armcc/errno.h
575575
#ifndef EHWPOISON
576576
#define EHWPOISON (ERROR_BASE_NO + 133)
577577
#endif
578-
#endif
579578

580-
#endif
579+
#elif defined(_WIN32)
580+
#include <errno.h>
581+
582+
#endif /* defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) */
583+
584+
#endif /* __SYS_ERRNO_H__ */

components/libc/compilers/common/sys/time.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#include <sys/types.h>
1616
#include <stdint.h>
1717
#include <time.h>
18+
#ifdef _WIN32
19+
#include <winsock.h> /* for struct timeval */
20+
#endif
1821

1922
#ifdef __cplusplus
2023
extern "C" {

0 commit comments

Comments
 (0)