Add additional conditionalization of networking includes
[debian/gnuradio] / gnuradio-core / src / lib / io / gr_udp_source.cc
index 880388e5e3e90fbf958616f7dcb779eed8eddf4d..15f83892ca46045330cfdc1617377f775cdacf87 100755 (executable)
 
 #if defined(HAVE_NETDB_H)
 #include <netdb.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 typedef void* optval_t;
 
 // ntohs() on FreeBSD may require both netinet/in.h and arpa/inet.h, in order