Include <sys/socket.h> for AF_INET

Compilation fails on FreeBSD because not all POSIX
compliant systems end up including AF_INET from
other header files transitively.

AF_INET and AF_INET6 should be provided by
<sys/socket.h>.
pull/10681/merge
Mehrdad Afshari 8 years ago committed by Mehrdad Afshari
parent 7366fe6df3
commit f583975f81
  1. 1
      src/core/tsi/ssl_transport_security.c

@ -45,6 +45,7 @@
#include <ws2tcpip.h>
#else
#include <arpa/inet.h>
#include <sys/socket.h>
#endif
#include <grpc/support/alloc.h>

Loading…
Cancel
Save