diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-12 11:11:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-12 11:11:45 +0000 |
commit | ccdfb051fa386bb44024d53540b0a29ab7bd725e (patch) | |
tree | 878edb310c5242bf810e228ac7367fdad15afdaf | |
parent | 3117f4738bd6c23ac8af5893ba26ac1c86736608 (diff) | |
download | gnunet-ccdfb051fa386bb44024d53540b0a29ab7bd725e.tar.gz gnunet-ccdfb051fa386bb44024d53540b0a29ab7bd725e.zip |
LRN: disable bind test on W32
-rw-r--r-- | src/util/client.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/util/client.c b/src/util/client.c index a05c5bf75..db53ab6f2 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -815,7 +815,11 @@ GNUNET_CLIENT_service_test (const char *service, | |||
815 | return; | 815 | return; |
816 | } | 816 | } |
817 | 817 | ||
818 | if (0 == strcmp ("localhost", hostname)) | 818 | if (0 == strcmp ("localhost", hostname) |
819 | #if WINDOWS | ||
820 | && 0 | ||
821 | #endif | ||
822 | ) | ||
819 | { | 823 | { |
820 | /* can test using 'bind' */ | 824 | /* can test using 'bind' */ |
821 | struct sockaddr_in s_in; | 825 | struct sockaddr_in s_in; |
@@ -847,7 +851,11 @@ GNUNET_CLIENT_service_test (const char *service, | |||
847 | } | 851 | } |
848 | } | 852 | } |
849 | 853 | ||
850 | if (0 == strcmp ("ip6-localhost", hostname)) | 854 | if (0 == strcmp ("ip6-localhost", hostname) |
855 | #if WINDOWS | ||
856 | && 0 | ||
857 | #endif | ||
858 | ) | ||
851 | { | 859 | { |
852 | /* can test using 'bind' */ | 860 | /* can test using 'bind' */ |
853 | struct sockaddr_in6 s_in6; | 861 | struct sockaddr_in6 s_in6; |
@@ -879,8 +887,12 @@ GNUNET_CLIENT_service_test (const char *service, | |||
879 | } | 887 | } |
880 | } | 888 | } |
881 | 889 | ||
882 | if ( (0 == strcmp ("localhost", hostname)) || | 890 | if (( (0 == strcmp ("localhost", hostname)) || |
883 | (0 == strcmp ("ip6-localhost", hostname)) ) | 891 | (0 == strcmp ("ip6-localhost", hostname))) |
892 | #if WINDOWS | ||
893 | && 0 | ||
894 | #endif | ||
895 | ) | ||
884 | { | 896 | { |
885 | /* all binds succeeded => claim service not running right now */ | 897 | /* all binds succeeded => claim service not running right now */ |
886 | GNUNET_free_non_null (hostname); | 898 | GNUNET_free_non_null (hostname); |