Enable compiling with MINGW under MS Windows
This commit is contained in:
parent
4d4f226a83
commit
86e991515e
|
|
@ -89,12 +89,13 @@ extern void exec_controls(wordlist *controls);
|
||||||
extern void SetSource(char *Name);
|
extern void SetSource(char *Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (_MSC_VER) || defined (__MINGW32__)
|
#if defined (_MSC_VER)
|
||||||
typedef struct timeval {
|
typedef struct timeval {
|
||||||
long tv_sec;
|
long tv_sec;
|
||||||
long tv_usec;
|
long tv_usec;
|
||||||
} timeval;
|
} timeval;
|
||||||
|
#endif
|
||||||
|
#if defined (_MSC_VER) || defined (__MINGW32__)
|
||||||
extern int gettimeofday(struct timeval* tp, void* unused);
|
extern int gettimeofday(struct timeval* tp, void* unused);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue