diff options
author | vs <vs@FreeBSD.org> | 2004-08-06 16:57:41 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-08-06 16:57:41 +0800 |
commit | 8b799ba23fedada77b65b391c7231b8cacacc31f (patch) | |
tree | 79550039b8e19338b4e62f29a3c86b87156f6013 /net | |
parent | 4be4082cc7072e08926c44031d0ebed95fc7977e (diff) | |
download | freebsd-ports-gnome-8b799ba23fedada77b65b391c7231b8cacacc31f.tar.gz freebsd-ports-gnome-8b799ba23fedada77b65b391c7231b8cacacc31f.tar.zst freebsd-ports-gnome-8b799ba23fedada77b65b391c7231b8cacacc31f.zip |
Fix running w/o INET6
Closes PR: ports/69941
Submitted by: Igor Karpov
Patch by: Lars Erik Gullerud (maintainer)
Diffstat (limited to 'net')
-rw-r--r-- | net/ripe-whois/Makefile | 1 | ||||
-rw-r--r-- | net/ripe-whois/files/patch-whois3.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/net/ripe-whois/Makefile b/net/ripe-whois/Makefile index a93e2b82c927..dba15c309bf7 100644 --- a/net/ripe-whois/Makefile +++ b/net/ripe-whois/Makefile @@ -7,6 +7,7 @@ PORTNAME= ripe-whois PORTVERSION= 3.1.1v6 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= ftp://ftp.ripe.net/tools/ diff --git a/net/ripe-whois/files/patch-whois3.c b/net/ripe-whois/files/patch-whois3.c new file mode 100644 index 000000000000..694f1a48af29 --- /dev/null +++ b/net/ripe-whois/files/patch-whois3.c @@ -0,0 +1,16 @@ +--- whois3.c.orig Thu Aug 5 16:41:00 2004 ++++ whois3.c Thu Aug 5 16:59:16 2004 +@@ -130,7 +130,12 @@ + /* create the socket */ + fd = socket(dest.ss_family, SOCK_STREAM, 0); + if (fd < 0) +- fatal("cannot create the socket: %s", strerror(errno)); ++ { ++ if (errno == EPROTONOSUPPORT) ++ continue; ++ else ++ fatal("cannot create the socket: %s", strerror(errno)); ++ } + + /* perform the connection */ + err = connect(fd, (struct sockaddr *) &dest, destlen); |