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