gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r30069 - gnunet/src/util
Date: Thu, 10 Oct 2013 00:25:41 +0200

Author: LRN
Date: 2013-10-10 00:25:41 +0200 (Thu, 10 Oct 2013)
New Revision: 30069

Modified:
   gnunet/src/util/service.c
Log:
Fix to build on W32 again

Modified: gnunet/src/util/service.c
===================================================================
--- gnunet/src/util/service.c   2013-10-09 20:47:26 UTC (rev 30068)
+++ gnunet/src/util/service.c   2013-10-09 22:25:41 UTC (rev 30069)
@@ -1468,12 +1468,14 @@
     sctx->ret = GNUNET_SYSERR;
     return;
   }
+#ifndef WINDOWS
   if (NULL != sctx->addrs)
     for (i = 0; NULL != sctx->addrs[i]; i++)
       if (AF_UNIX == sctx->addrs[i]->sa_family)
         GNUNET_DISK_fix_permissions (((const struct sockaddr_un 
*)sctx->addrs[i])->sun_path,
                                      sctx->match_uid,
                                      sctx->match_gid);
+#endif
 
 
   if (0 == (sctx->options & GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN))
@@ -1875,12 +1877,14 @@
     GNUNET_SERVICE_stop (sctx);
     return NULL;
   }
+#ifndef WINDOWS
   if (NULL != sctx->addrs)
     for (i = 0; NULL != sctx->addrs[i]; i++)
       if (AF_UNIX == sctx->addrs[i]->sa_family)
         GNUNET_DISK_fix_permissions (((const struct sockaddr_un 
*)sctx->addrs[i])->sun_path,
                                      sctx->match_uid,
                                      sctx->match_gid);
+#endif
   sctx->my_handlers = GNUNET_malloc (sizeof (defhandlers));
   memcpy (sctx->my_handlers, defhandlers, sizeof (defhandlers));
   i = 0;




reply via email to

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