summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2015-07-01 00:46:30 +0000
committerKoichiro IWAO <meta@vmeta.jp>2015-07-02 15:08:55 +0900
commit5bc0453605d816d84b4ca1816de22362ac614113 (patch)
treed0f623ab910da54f1ec3d54d7520841a6a78963b /common
parentf8432d0bb71e0b358c8ab32fdfae816229973034 (diff)
downloadxrdp-proprietary-5bc0453605d816d84b4ca1816de22362ac614113.tar.gz
xrdp-proprietary-5bc0453605d816d84b4ca1816de22362ac614113.zip
common: drop ipv6 autodetection only valid for linux
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 50d7e549..46bc0e8a 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -463,7 +463,7 @@ g_tcp_socket(void)
unsigned int option_len;
#endif
-#if defined(XRDP_ENABLE_IPV6) && !defined(NO_ARPA_INET_H_IP6)
+#if defined(XRDP_ENABLE_IPV6)
rv = (int)socket(AF_INET6, SOCK_STREAM, 0);
#else
rv = (int)socket(AF_INET, SOCK_STREAM, 0);
@@ -472,7 +472,7 @@ g_tcp_socket(void)
{
return -1;
}
-#if defined(XRDP_ENABLE_IPV6) && !defined(NO_ARPA_INET_H_IP6)
+#if defined(XRDP_ENABLE_IPV6)
option_len = sizeof(option_value);
if (getsockopt(rv, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&option_value,
&option_len) == 0)
@@ -711,7 +711,7 @@ g_tcp_close(int sck)
/*****************************************************************************/
/* returns error, zero is good */
-#if defined(XRDP_ENABLE_IPV6) && !defined(NO_ARPA_INET_H_IP6)
+#if defined(XRDP_ENABLE_IPV6)
int APP_CC
g_tcp_connect(int sck, const char *address, const char *port)
{