Add sys/time.h for gettimeofday.

Should allow it it compile with MUSL libc.  Based on patch from
doughdemon via github.
This commit is contained in:
Darren Tucker 2015-12-15 13:59:12 +11:00
parent 39736be06c
commit c6f5f01651
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <netinet/in.h>