mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Better detecting of modem status lines.
Use the 4.4BSD spelling of TIOCMGET and TIOCMSET rather than the obsolete TIOCMODG and TIOCMOD. PR: 16341 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
This commit is contained in:
parent
f24f5f3a55
commit
53261c9447
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35020
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= minicom
|
||||
PORTVERSION= 1.83.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
||||
http://www.pp.clinet.fi/~walker/mc-dev/ \
|
||||
|
27
comms/minicom/files/patch-sysdep1.c
Normal file
27
comms/minicom/files/patch-sysdep1.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- sysdep1.c.orig Wed Mar 15 08:45:03 2000
|
||||
+++ sysdep1.c Fri Nov 10 09:26:24 2000
|
||||
@@ -69 +69 @@
|
||||
-#if defined(TIOCM_RTS) && defined(TIOCMODG)
|
||||
+#if defined(TIOCM_RTS) && defined(TIOCMGET)
|
||||
@@ -72 +72 @@
|
||||
- ioctl(fd, TIOCMODG, &mcs);
|
||||
+ ioctl(fd, TIOCMGET, &mcs);
|
||||
@@ -74 +74 @@
|
||||
- ioctl(fd, TIOCMODS, &mcs);
|
||||
+ ioctl(fd, TIOCMSET, &mcs);
|
||||
@@ -180 +180 @@
|
||||
-#ifdef TIOCMODG
|
||||
+#ifdef TIOCMGET
|
||||
@@ -183 +183 @@
|
||||
- ioctl(fd, TIOCMODG, &mcs);
|
||||
+ ioctl(fd, TIOCMGET, &mcs);
|
||||
@@ -221,2 +221,2 @@
|
||||
-#ifdef TIOCMODG
|
||||
- ioctl(fd, TIOCMODG, &m_word);
|
||||
+#ifdef TIOCMGET
|
||||
+ ioctl(fd, TIOCMGET, &m_word);
|
||||
@@ -243,2 +243,2 @@
|
||||
-#ifdef TIOCMODS
|
||||
- ioctl(fd, TIOCMODS, &m_word);
|
||||
+#ifdef TIOCMSET
|
||||
+ ioctl(fd, TIOCMSET, &m_word);
|
Loading…
Reference in New Issue
Block a user