summaryrefslogtreecommitdiffstats
path: root/utils/picocom/patches/100-musl-compat.patch
blob: 5f7d75034b5067b0ddca483d7698fe25f936b6a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: picocom-1.7/term.c
===================================================================
--- picocom-1.7.orig/term.c
+++ picocom-1.7/term.c
@@ -33,10 +33,11 @@
 #include <string.h>
 #include <errno.h>
 #include <unistd.h>
-#ifdef __linux__
+#if defined(__linux__) && (defined(__GLIBC__) || defined(__UCLIBC__))
 #include <termio.h>
 #else
 #include <termios.h>
+#include <sys/ioctl.h>
 #endif /* of __linux__ */
 
 #include "term.h"