Subject: [PATCH] src/utils.c: add missing <sys/time.h>, fixes build on musl

From: "Anthony G. Basile" <[email-masked]>
Date: Sun, 29 May 2016 12:19:23 -0400

src/utils.c defines a "struct timeval" but does not include <sys/time.h> as
required by POSIX [1].  This is okay with glibc, because of how the headers
stack, but not with other libcs, like musl.  It leads to a compile time error.

[1] http://pubs.opengroup.org/onlinepubs/007908775/xsh/systime.h.html

Signed-off-by: Anthony G. Basile <[email-masked]>
---
 src/utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/utils.c b/src/utils.c
index 1dac15c..3e2fa6a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -21,6 +21,7 @@
 #include "sysdeps.h"
 #include "utils.h"
 #include <time.h>
+#include <sys/time.h>
 #include <errno.h>
 
 #define DEBUG 1
-- 
2.7.3