Fix building with new kernel headers.

net_tstamp.h in recent kernel versions requires time.h for clockid_t.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2018-11-13 13:16:08 +01:00 committed by Richard Cochran
parent 1a4f6a26ce
commit d663a483c4
3 changed files with 3 additions and 1 deletions

View File

@ -17,11 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include <errno.h> #include <errno.h>
#include <time.h>
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <poll.h> #include <poll.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <sys/queue.h> #include <sys/queue.h>
#include "address.h" #include "address.h"

1
sk.c
View File

@ -18,6 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include <errno.h> #include <errno.h>
#include <time.h>
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <linux/sockios.h> #include <linux/sockios.h>
#include <linux/ethtool.h> #include <linux/ethtool.h>

View File

@ -22,6 +22,7 @@
#include <errno.h> #include <errno.h>
#include <libgen.h> #include <libgen.h>
#include <limits.h> #include <limits.h>
#include <time.h>
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <net/if.h> #include <net/if.h>
#include <signal.h> #include <signal.h>