[csw-devel] SF.net SVN: gar:[15190] csw/mgar/pkg/lftp/trunk/files/ 0006-no-ipv6_v6only-setsock-option-under-solaris-9.patch

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Sat Jul 23 00:55:38 CEST 2011


Revision: 15190
          http://gar.svn.sourceforge.net/gar/?rev=15190&view=rev
Author:   chninkel
Date:     2011-07-22 22:55:38 +0000 (Fri, 22 Jul 2011)

Log Message:
-----------
lftp: added missing patch file

Added Paths:
-----------
    csw/mgar/pkg/lftp/trunk/files/0006-no-ipv6_v6only-setsock-option-under-solaris-9.patch

Added: csw/mgar/pkg/lftp/trunk/files/0006-no-ipv6_v6only-setsock-option-under-solaris-9.patch
===================================================================
--- csw/mgar/pkg/lftp/trunk/files/0006-no-ipv6_v6only-setsock-option-under-solaris-9.patch	                        (rev 0)
+++ csw/mgar/pkg/lftp/trunk/files/0006-no-ipv6_v6only-setsock-option-under-solaris-9.patch	2011-07-22 22:55:38 UTC (rev 15190)
@@ -0,0 +1,25 @@
+From 4dcd1af03e96e63ea860b8da1a3845f94c85b4a0 Mon Sep 17 00:00:00 2001
+From: Yann Rouillard <yann at pleiades.fr.eu.org>
+Date: Fri, 22 Jul 2011 23:26:04 +0200
+Subject: [PATCH] no ipv6_v6only setsock option under solaris 9
+
+---
+ src/network.cc |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/network.cc b/src/network.cc
+index fc7b407..e5af45a 100644
+--- a/src/network.cc
++++ b/src/network.cc
+@@ -285,7 +285,7 @@ int Networker::SocketAccept(int fd,sockaddr_u *u,const char *hostname)
+ 
+ void Networker::SocketSinglePF(int s,int pf)
+ {
+-#if INET6
++#if INET6 && !(defined (__SVR4) && defined (__sun))
+    if(pf==PF_INET6) {
+       int on = 1;
+       if(-1==setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&on, sizeof(on)))
+-- 
+1.7.6
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list