void-packages/srcpkgs/picocom/patches/fix-musl.patch

15 lines
340 B
Diff

diff -up term.c.orig term.c
--- term.c.orig 2015-08-25 19:53:25.000000000 +0200
+++ term.c 2015-08-30 11:40:05.723748387 +0200
@@ -33,7 +33,11 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
+#ifdef __GLIBC__
#include <termios.h>
+#else
+#include <asm/termbits.h>
+#endif
#ifdef __linux__
#include <sys/ioctl.h>
#endif