Fix 'struct timespec declared inside parameter list' MinGW warning.

From pbatard branch.
This commit is contained in:
R. Bernstein
2012-02-25 19:34:16 -05:00
parent 385496a24c
commit 3536da6230

View File

@@ -29,6 +29,14 @@
#include <time.h>
#ifndef HAVE_STRUCT_TIMESPEC
#define HAVE_STRUCT_TIMESPEC
struct timespec {
time_t tv_sec; /* Seconds */
long tv_nsec; /* Nanoseconds */
};
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */