diff -upr libva-vdpau-driver-0.7.4.orig/src/utils.c libva-vdpau-driver-0.7.4/src/utils.c
--- libva-vdpau-driver-0.7.4.orig/src/utils.c	2016-11-12 22:47:31.377199801 +0100
+++ libva-vdpau-driver-0.7.4/src/utils.c	2016-11-12 22:48:09.130062386 +0100
@@ -21,6 +21,7 @@
 #include "sysdeps.h"
 #include "utils.h"
 #include <time.h>
+#include <sys/time.h>
 #include <errno.h>
 
 #define DEBUG 1
