[PATCH] selftests: add missing include linux/sockios
From: Alakesh Haloi
Date: Thu May 23 2019 - 21:45:12 EST
Including <linux/sockios.h> fixes the following compiler warning
timestamping.c: In function âprintpacketâ:
timestamping.c:261:19: error: âSIOCGSTAMPâ undeclared (first use in this function); did you mean âSIOCGSTAMPNSâ?
if (ioctl(sock, SIOCGSTAMP, &tv))
^~~~~~~~~~
SIOCGSTAMPNS
Signed-off-by: Alakesh Haloi <alakesh.haloi@xxxxxxxxx>
---
tools/testing/selftests/networking/timestamping/timestamping.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/networking/timestamping/timestamping.c b/tools/testing/selftests/networking/timestamping/timestamping.c
index 5cdfd743447b..62f03bcc9432 100644
--- a/tools/testing/selftests/networking/timestamping/timestamping.c
+++ b/tools/testing/selftests/networking/timestamping/timestamping.c
@@ -44,6 +44,7 @@
#include <asm/types.h>
#include <linux/net_tstamp.h>
#include <linux/errqueue.h>
+#include <linux/sockios.h>
#ifndef SO_TIMESTAMPING
# define SO_TIMESTAMPING 37
--
2.17.1