gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r27506 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r27506 - gnunet/src/util
Date: Fri, 21 Jun 2013 05:16:10 +0200

Author: amatus
Date: 2013-06-21 05:16:10 +0200 (Fri, 21 Jun 2013)
New Revision: 27506

Modified:
   gnunet/src/util/network.c
Log:
Fix non-windows non-IPv6 build.


Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c   2013-06-20 21:37:40 UTC (rev 27505)
+++ gnunet/src/util/network.c   2013-06-21 03:16:10 UTC (rev 27506)
@@ -379,17 +379,23 @@
 
 #ifdef IPV6_V6ONLY
 #ifdef IPPROTO_IPV6
-  const int on = 1;
+  {
+    const int on = 1;
 
-  if (desc->af == AF_INET6)
-    if (0 != setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof 
(on)))
-      LOG_STRERROR (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
+    if (desc->af == AF_INET6)
+      if (setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on)))
+        LOG_STRERROR (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
+  }
 #endif
 #endif
 #ifndef WINDOWS
-  /* This is required, and required here, but only on UNIX */
-  if (0 != setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)))
-    LOG_STRERROR (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
+  {
+    const int on = 1;
+  
+    /* This is required, and required here, but only on UNIX */
+    if (0 != setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)))
+      LOG_STRERROR (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
+  }
 #endif
 #ifndef LINUX
 #ifndef MINGW




reply via email to

[Prev in Thread] Current Thread [Next in Thread]