diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/encoding/time_fmt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/encoding/time_fmt.c b/src/lib/encoding/time_fmt.c index ea9c8e9fd1..c2ff34a91a 100644 --- a/src/lib/encoding/time_fmt.c +++ b/src/lib/encoding/time_fmt.c @@ -26,6 +26,11 @@ #include <string.h> #include <time.h> +#ifdef _WIN32 +/* For struct timeval */ +#include <winsock2.h> +#endif + /** As localtime_r, but defined for platforms that don't have it: * * Convert *<b>timep</b> to a struct tm in local time, and store the value in |