summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/thermald/files/0001-Include-poll.h-instead-of-sys-poll.h.patch
blob: 16d2ff10ae70017b7678f2d74eb89c06cd2a4713 (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
From b3de44c28cd930d68c17638575d46e590679f9fe Mon Sep 17 00:00:00 2001
From: Anuj Mittal <anuj.mittal@intel.com>
Date: Thu, 18 Jan 2018 10:10:40 +0800
Subject: [PATCH] Include poll.h instead of sys/poll.h

POSIX specifies poll.h to be the correct header name [1]. Also fixes
a warning when built with musl.

 | <sysroot>/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp]
 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html

Upstream-Status: Submitted [https://github.com/intel/thermal_daemon/pull/147]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 src/thd_kobj_uevent.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/thd_kobj_uevent.h b/src/thd_kobj_uevent.h
index d30ea5c..aa8e33f 100644
--- a/src/thd_kobj_uevent.h
+++ b/src/thd_kobj_uevent.h
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <unistd.h>
-- 
2.7.4