1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Update to 1.5.0

Approved by:	petef(maintainer)
This commit is contained in:
Patrick Li 2002-03-25 05:44:08 +00:00
parent 0a075bed87
commit a7dc96946e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56602
4 changed files with 36 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= nap
PORTVERSION= 1.4.8
PORTVERSION= 1.5.0
CATEGORIES= audio net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nap

View File

@ -1 +1 @@
MD5 (nap-1.4.8.tar.gz) = a892969328f380fd0c87a886d6f0dcdd
MD5 (nap-1.5.0.tar.gz) = 37f212b818e4d0a1674ddd63f638e1b3

View File

@ -0,0 +1,12 @@
--- cmds.c.orig Sat Mar 9 17:29:08 2002
+++ cmds.c Sat Mar 9 17:29:41 2002
@@ -19,8 +19,8 @@
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <arpa/inet.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <sys/time.h>
#include <unistd.h>
#include <signal.h>

View File

@ -0,0 +1,22 @@
--- nap.c.orig Fri Mar 1 11:17:37 2002
+++ nap.c Sat Mar 9 17:24:26 2002
@@ -1987,7 +1987,7 @@
char *buf;
char *p;
int i, r;
- int timeout;
+ int timeout, on = 1;
timeout = nvar_default("connecttimeout", CONNECTTIMEOUT);
@@ -2010,6 +2010,10 @@
wp(wchan, "Error creating socket: %s\n", strerror(errno));
drw(wchan);
return(-1);
+ }
+
+ if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1) {
+ perror("setsockopt(SO_REUSEADDR)");
}
if (connect_t(s, (struct sockaddr *)&dst, sizeof(dst), timeout) == -1) {