Merge pull request #3049 from murgatroid99/objc_disable_udp_error

Made udp_server.c compile for iOS
pull/3055/head
Craig Tiller 9 years ago
commit b5bf12bdcc
  1. 2
      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) {

Loading…
Cancel
Save