1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 21:03:56 +02:00
openwrt-packages/utils/setserial/patches/020-musl.patch

20 lines
346 B
Diff
Raw Permalink Normal View History

--- 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"