summaryrefslogtreecommitdiffstats
path: root/utils/open-plc-utils/patches/100-musl-compat.patch
blob: c20c0a1fea4f454fe210504a9602c44e1947319b (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
--- a/ether/readpacket.c
+++ b/ether/readpacket.c
@@ -70,6 +70,10 @@
 #include <memory.h>
 #include <errno.h>
 
+#if defined (__linux__)
+#include <poll.h>
+#endif
+
 #include "../ether/channel.h"
 #include "../tools/memory.h"
 #include "../tools/error.h"
@@ -95,8 +99,6 @@ ssize_t readpacket (struct channel const
 
 #elif defined (__linux__)
 
-#include <sys/poll.h>
-
 	struct pollfd pollfd =
 	{
 		channel->fd,
--- a/serial/serial.c
+++ b/serial/serial.c
@@ -69,6 +69,8 @@
 
 #if defined (WIN32)
 #include <Windows.h>
+#else
+#include <sys/select.h>
 #endif
 
 /*====================================================================*