mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
picocom: Update to 3.1
Switched to new upstream. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d6a4d60..a07d801 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -51,7 +51,6 @@ linenoise-1.0/linenoise.o : linenoise-1.0/linenoise.c linenoise-1.0/linenoise.h
|
||||
|
||||
OBJS += picocom.o term.o fdio.o split.o termios2.o custbaud_bsd.o
|
||||
picocom : $(OBJS)
|
||||
- $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
||||
|
||||
picocom.o : picocom.c term.h fdio.h split.h custbaud.h
|
||||
term.o : term.c term.h termios2.h custbaud_bsd.h custbaud.h
|
||||
@@ -1,17 +0,0 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user