Enable compiling with MINGW under MS Windows

This commit is contained in:
Holger Vogt 2023-11-18 20:09:49 +01:00
parent 4d4f226a83
commit 86e991515e
1 changed files with 3 additions and 2 deletions

View File

@ -89,12 +89,13 @@ extern void exec_controls(wordlist *controls);
extern void SetSource(char *Name);
#endif
#if defined (_MSC_VER) || defined (__MINGW32__)
#if defined (_MSC_VER)
typedef struct timeval {
long tv_sec;
long tv_usec;
} timeval;
#endif
#if defined (_MSC_VER) || defined (__MINGW32__)
extern int gettimeofday(struct timeval* tp, void* unused);
#endif