diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-25 08:28:15 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-25 08:28:15 -0700 |
commit | b5bf12bdcc6296dac547ae04a68354f14c0491c1 (patch) | |
tree | 289e117a0e74beffbea83a40f2b7692778435376 /src | |
parent | bf27a6860c4497301198bc850b7de0b178d63c9c (diff) | |
parent | 049e1dfd76e1453a77cd6435b24988e6090a13e4 (diff) |
Merge pull request #3049 from murgatroid99/objc_disable_udp_error
Made udp_server.c compile for iOS
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/udp_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/udp_server.c b/src/core/iomgr/udp_server.c index 16482c08f7..6429c38b28 100644 --- a/src/core/iomgr/udp_server.c +++ b/src/core/iomgr/udp_server.c @@ -235,8 +235,10 @@ static int prepare_socket(int fd, const struct sockaddr *addr, int addr_len) { rc = setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip, sizeof(get_local_ip)); if (rc == 0 && addr->sa_family == AF_INET6) { +#if !TARGET_OS_IPHONE rc = setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip, sizeof(get_local_ip)); +#endif } if (bind(fd, addr, addr_len) < 0) { |