From: Nils Durner Date: Fri, 16 Apr 2010 20:34:40 +0000 (+0000) Subject: Linux X-Git-Tag: initial-import-from-subversion-38251~22118 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16a80f0545d5e3922c0e3df98815b355f2a9f127;p=oweals%2Fgnunet.git Linux --- diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c index 2b7929e0e..af8ecdeec 100644 --- a/src/util/test_resolver_api.c +++ b/src/util/test_resolver_api.c @@ -333,8 +333,11 @@ run(void *cls, struct GNUNET_SCHEDULER_Handle *sched, char * const *args, memset(&sa, 0, sizeof(sa)); sa.sin_family = AF_INET; +#ifndef MINGW + inet_aton(ROOTSERVER_IP, &sa.sin_addr); +#else sa.sin_addr.S_un.S_addr = inet_addr(ROOTSERVER_IP); - +#endif GNUNET_RESOLVER_hostname_get(sched, cfg, (const struct sockaddr *) &sa, sizeof(struct sockaddr), GNUNET_YES, timeout, &check_rootserver_name, cls); }