summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-test/fwts/fwts/0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch
blob: 4baefe4a4c06b84a1903b0dfcfa1bd7cc3b5c509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From ed988c27efde5355c3ba9d0de8a14a4a40f798cc Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 6 Jun 2017 07:25:09 -0700
Subject: [PATCH] Include poll.h instead of deprecated sys/poll.h

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 src/lib/src/fwts_ipmi.c   | 3 ++-
 src/lib/src/fwts_pipeio.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/src/fwts_ipmi.c b/src/lib/src/fwts_ipmi.c
index a4c8a511..e298969e 100644
--- a/src/lib/src/fwts_ipmi.c
+++ b/src/lib/src/fwts_ipmi.c
@@ -18,10 +18,11 @@
  *
  */
 
+#include <poll.h>
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/poll.h>
 #include <sys/ioctl.h>
 #include <linux/ipmi.h>
 
diff --git a/src/lib/src/fwts_pipeio.c b/src/lib/src/fwts_pipeio.c
index 3b3cfaff..289564d1 100644
--- a/src/lib/src/fwts_pipeio.c
+++ b/src/lib/src/fwts_pipeio.c
@@ -30,9 +30,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <paths.h>
+#include <poll.h>
 
 #include <sys/param.h>
-#include <sys/poll.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <errno.h>
OpenPOWER on IntegriCloud