blob: a04473d2184f82e3d8319b9a01446ad7d893cd57 [file] [log] [blame]
Andrew Geisslera2681d92020-10-16 10:17:07 -05001From 4cad505fc98240eb66eaabfae61a9694f8158dda Mon Sep 17 00:00:00 2001
2From: Romain Naour <romain.naour@smile.fr>
3Date: Tue, 7 Apr 2020 20:58:37 +0200
4Subject: [PATCH] use <poll.h> instead of <sys/poll.h>
5
6The manpage of poll(2) states that the prototype of poll is defined
7in <poll.h>. Use that header file instead of <sys/poll.h> to allow
8compilation against musl-libc.
9
10Upstream status: Pending
11https://github.com/mz-automation/libiec61850/pull/228
12
13Signed-off-by: Romain Naour <romain.naour@smile.fr>
14---
15 hal/ethernet/linux/ethernet_linux.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/hal/ethernet/linux/ethernet_linux.c b/hal/ethernet/linux/ethernet_linux.c
19index c3ab2e2..9aa5c28 100644
20--- a/hal/ethernet/linux/ethernet_linux.c
21+++ b/hal/ethernet/linux/ethernet_linux.c
22@@ -23,7 +23,7 @@
23
24 #include <sys/socket.h>
25 #include <sys/ioctl.h>
26-#include <sys/poll.h>
27+#include <poll.h>
28 #include <linux/if_packet.h>
29 #include <linux/if_ether.h>
30 #include <linux/if_arp.h>
31--
322.21.1
33