blob: 0d261fd4ef8d6c4266683f0f654353b85345f79a [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From cae68083fda5d4ca832ff3cc8a533454df2efe23 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 12 Oct 2021 20:35:53 -0700
4Subject: [PATCH] libknet/tests: Correct include path for poll.h
5
6Fixes
7/usr/include/sys/poll.h:1:2: error: redirec
8ting incorrect #include <sys/poll.h> to <poll.h> [-Werror,-W#warnings]
9| #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
10
11Upstream-Status: Submitted [https://github.com/kronosnet/kronosnet/pull/363]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 libknet/tests/test-common.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/libknet/tests/test-common.c b/libknet/tests/test-common.c
18index 86b76b0..8f8b6ca 100644
19--- a/libknet/tests/test-common.c
20+++ b/libknet/tests/test-common.c
21@@ -20,7 +20,7 @@
22 #include <pthread.h>
23 #include <dirent.h>
24 #include <sys/select.h>
25-#include <sys/poll.h>
26+#include <poll.h>
27
28 #include "libknet.h"
29 #include "test-common.h"