8cf965
commit d663a483c40939bad58301c256d86da1f3da6cc0
8cf965
Author: Miroslav Lichvar <mlichvar@redhat.com>
8cf965
Date:   Tue Nov 13 13:16:08 2018 +0100
8cf965
8cf965
    Fix building with new kernel headers.
8cf965
    
8cf965
    net_tstamp.h in recent kernel versions requires time.h for clockid_t.
8cf965
    
8cf965
    Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
8cf965
8cf965
diff --git a/clock.c b/clock.c
8cf965
index 9c493c3..8533b39 100644
8cf965
--- a/clock.c
8cf965
+++ b/clock.c
8cf965
@@ -17,11 +17,11 @@
8cf965
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
8cf965
  */
8cf965
 #include <errno.h>
8cf965
+#include <time.h>
8cf965
 #include <linux/net_tstamp.h>
8cf965
 #include <poll.h>
8cf965
 #include <stdlib.h>
8cf965
 #include <string.h>
8cf965
-#include <time.h>
8cf965
 #include <sys/queue.h>
8cf965
 
8cf965
 #include "address.h"
8cf965
diff --git a/sk.c b/sk.c
8cf965
index e2b1f28..30162eb 100644
8cf965
--- a/sk.c
8cf965
+++ b/sk.c
8cf965
@@ -18,6 +18,7 @@
8cf965
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
8cf965
  */
8cf965
 #include <errno.h>
8cf965
+#include <time.h>
8cf965
 #include <linux/net_tstamp.h>
8cf965
 #include <linux/sockios.h>
8cf965
 #include <linux/ethtool.h>
8cf965
diff --git a/timemaster.c b/timemaster.c
8cf965
index 058678f..00db59f 100644
8cf965
--- a/timemaster.c
8cf965
+++ b/timemaster.c
8cf965
@@ -22,6 +22,7 @@
8cf965
 #include <errno.h>
8cf965
 #include <libgen.h>
8cf965
 #include <limits.h>
8cf965
+#include <time.h>
8cf965
 #include <linux/net_tstamp.h>
8cf965
 #include <net/if.h>
8cf965
 #include <signal.h>