pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/sredird Not every system has B230400, so only...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a2abf8b7e566
branches: trunk
changeset: 481226:a2abf8b7e566
user: tv <tv%pkgsrc.org@localhost>
date: Tue Sep 28 22:14:04 2004 +0000
description:
Not every system has B230400, so only include it if available. Fixes part
(but not all) of a build problem on IRIX.
diffstat:
sysutils/sredird/distinfo | 4 ++--
sysutils/sredird/patches/patch-aa | 16 ++++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diffs (66 lines):
diff -r f74acef77b42 -r a2abf8b7e566 sysutils/sredird/distinfo
--- a/sysutils/sredird/distinfo Tue Sep 28 22:05:57 2004 +0000
+++ b/sysutils/sredird/distinfo Tue Sep 28 22:14:04 2004 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/03/29 19:44:15 tv Exp $
+$NetBSD: distinfo,v 1.2 2004/09/28 22:14:04 tv Exp $
SHA1 (sredird-2.0.0.tar.gz) = 2eae6fb41b46ebf9f704dd997ef0a096e5084721
Size (sredird-2.0.0.tar.gz) = 24053 bytes
-SHA1 (patch-aa) = 7300bf886b07e290f11cd7fae8792ddacf1a5634
+SHA1 (patch-aa) = 05c856220a89fe54666b0382d0f313f063789146
diff -r f74acef77b42 -r a2abf8b7e566 sysutils/sredird/patches/patch-aa
--- a/sysutils/sredird/patches/patch-aa Tue Sep 28 22:05:57 2004 +0000
+++ b/sysutils/sredird/patches/patch-aa Tue Sep 28 22:14:04 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/03/29 19:44:15 tv Exp $
+$NetBSD: patch-aa,v 1.2 2004/09/28 22:14:04 tv Exp $
---- sredird.c.orig Mon Jan 14 05:40:44 2002
+--- sredird.c.orig 2002-01-14 05:40:44.000000000 -0500
+++ sredird.c
@@ -82,9 +82,9 @@
#include <fcntl.h>
@@ -13,10 +13,14 @@
#include <netinet/ip.h>
#include <netinet/tcp.h>
-@@ -658,8 +658,10 @@ unsigned long int GetPortSpeed(int PortF
+@@ -656,10 +656,14 @@ unsigned long int GetPortSpeed(int PortF
+ return(57600UL);
+ case B115200:
return(115200UL);
++#ifdef B230400
case B230400:
return(230400UL);
++#endif
+#ifdef B460800
case B460800:
return(460800UL);
@@ -24,7 +28,7 @@
default:
return(0UL);
}
-@@ -1038,9 +1040,11 @@ void SetPortSpeed(int PortFd, unsigned l
+@@ -1038,9 +1042,11 @@ void SetPortSpeed(int PortFd, unsigned l
case 230400UL:
Speed = B230400;
break;
@@ -36,7 +40,7 @@
default:
LogMsg(LOG_WARNING,"Unknwon baud rate requested, setting to 9600.");
Speed = B9600;
-@@ -1770,7 +1774,8 @@ int main(int argc, char * argv[])
+@@ -1770,7 +1776,8 @@ int main(int argc, char * argv[])
int SockParm;
/* Out buffer ticks count */
@@ -46,7 +50,7 @@
/* Out buffer clock ticks limit */
clock_t MaxBTicks;
-@@ -1907,10 +1912,10 @@ int main(int argc, char * argv[])
+@@ -1907,10 +1914,10 @@ int main(int argc, char * argv[])
*/
SockParm = IPTOS_LOWDELAY;
setsockopt(STDIN_FILENO,SOL_SOCKET,SO_KEEPALIVE,&SockParmEnable,sizeof(SockParmEnable));
Home |
Main Index |
Thread Index |
Old Index