aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-10-09 22:25:41 +0000
committerLRN <lrn1986@gmail.com>2013-10-09 22:25:41 +0000
commitc9937905e995061cbd31cbbc5e1a5407aa1de11a (patch)
treea2134a619dfac37975bfe97e22d2211160e44281
parent62fb07648fd1a789e8bf44ea5b51a47e00a15c8c (diff)
downloadgnunet-c9937905e995061cbd31cbbc5e1a5407aa1de11a.tar.gz
gnunet-c9937905e995061cbd31cbbc5e1a5407aa1de11a.zip
Fix to build on W32 again
-rw-r--r--src/util/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/service.c b/src/util/service.c
index d60cc2885..61cac97e0 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -1468,12 +1468,14 @@ service_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1468 sctx->ret = GNUNET_SYSERR; 1468 sctx->ret = GNUNET_SYSERR;
1469 return; 1469 return;
1470 } 1470 }
1471#ifndef WINDOWS
1471 if (NULL != sctx->addrs) 1472 if (NULL != sctx->addrs)
1472 for (i = 0; NULL != sctx->addrs[i]; i++) 1473 for (i = 0; NULL != sctx->addrs[i]; i++)
1473 if (AF_UNIX == sctx->addrs[i]->sa_family) 1474 if (AF_UNIX == sctx->addrs[i]->sa_family)
1474 GNUNET_DISK_fix_permissions (((const struct sockaddr_un *)sctx->addrs[i])->sun_path, 1475 GNUNET_DISK_fix_permissions (((const struct sockaddr_un *)sctx->addrs[i])->sun_path,
1475 sctx->match_uid, 1476 sctx->match_uid,
1476 sctx->match_gid); 1477 sctx->match_gid);
1478#endif
1477 1479
1478 1480
1479 if (0 == (sctx->options & GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN)) 1481 if (0 == (sctx->options & GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN))
@@ -1875,12 +1877,14 @@ GNUNET_SERVICE_start (const char *service_name,
1875 GNUNET_SERVICE_stop (sctx); 1877 GNUNET_SERVICE_stop (sctx);
1876 return NULL; 1878 return NULL;
1877 } 1879 }
1880#ifndef WINDOWS
1878 if (NULL != sctx->addrs) 1881 if (NULL != sctx->addrs)
1879 for (i = 0; NULL != sctx->addrs[i]; i++) 1882 for (i = 0; NULL != sctx->addrs[i]; i++)
1880 if (AF_UNIX == sctx->addrs[i]->sa_family) 1883 if (AF_UNIX == sctx->addrs[i]->sa_family)
1881 GNUNET_DISK_fix_permissions (((const struct sockaddr_un *)sctx->addrs[i])->sun_path, 1884 GNUNET_DISK_fix_permissions (((const struct sockaddr_un *)sctx->addrs[i])->sun_path,
1882 sctx->match_uid, 1885 sctx->match_uid,
1883 sctx->match_gid); 1886 sctx->match_gid);
1887#endif
1884 sctx->my_handlers = GNUNET_malloc (sizeof (defhandlers)); 1888 sctx->my_handlers = GNUNET_malloc (sizeof (defhandlers));
1885 memcpy (sctx->my_handlers, defhandlers, sizeof (defhandlers)); 1889 memcpy (sctx->my_handlers, defhandlers, sizeof (defhandlers));
1886 i = 0; 1890 i = 0;