aboutsummaryrefslogtreecommitdiff
path: root/utils/setserial/patches/020-musl.patch
blob: 7b26594016ebd542d25dff31e06f58ecaec4dc7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/setserial.c
+++ b/setserial.c
@@ -11,6 +11,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <fcntl.h>
 #include <termios.h>
 #include <string.h>
@@ -22,6 +24,7 @@
 #ifdef HAVE_LINUX_HAYESESP_H
 #include <linux/hayesesp.h>
 #endif
+#include <sys/ioctl.h>
 #include <linux/serial.h>
 
 #include "version.h"