aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-09-29 11:29:42 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-09-29 11:29:42 -0700
commit7069da2fe205905974ba5c7c49254d8478691a57 (patch)
treeef3bed9f96437d6b0143bdfbc1fcd6fb4a64edd7 /src/core/iomgr
parentc825f4234724b448dbb576c1209fec3a8510dda8 (diff)
Diffstat (limited to 'src/core/iomgr')
-rw-r--r--src/core/iomgr/udp_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/udp_server.c b/src/core/iomgr/udp_server.c
index 6429c38b28..3aec1e871c 100644
--- a/src/core/iomgr/udp_server.c
+++ b/src/core/iomgr/udp_server.c
@@ -235,7 +235,7 @@ 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
+#if !defined(__APPLE__)
rc = setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip,
sizeof(get_local_ip));
#endif