picocom: fix patch do build correctly for musl and glibc
This commit is contained in:
parent
d1b25f77d7
commit
08dca053bc
2 changed files with 6 additions and 3 deletions
|
@ -1,12 +1,15 @@
|
|||
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,7 @@
|
||||
@@ -33,7 +33,11 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
-#include <termios.h>
|
||||
+#ifdef __GLIBC__
|
||||
#include <termios.h>
|
||||
+#else
|
||||
+#include <asm/termbits.h>
|
||||
+#endif
|
||||
#ifdef __linux__
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'picocom'
|
||||
pkgname=picocom
|
||||
version=2.0
|
||||
revision=1
|
||||
revision=3
|
||||
short_desc="Minimal dumb-terminal emulation program like minicom"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
license="GPL-2"
|
||||
|
|
Loading…
Reference in a new issue