diff options
author | Eric Blossom | 2010-05-19 19:57:10 -0700 |
---|---|---|
committer | Eric Blossom | 2010-05-19 19:57:10 -0700 |
commit | 68ce6b4a9b90d4d53310c4271e6011b796fc1bff (patch) | |
tree | 65a8e65db79d05819804eb2b4276cddba818d298 /gnuradio-core | |
parent | a61fc516f5deeef67b48a704c5426c3969d36248 (diff) | |
download | gnuradio-68ce6b4a9b90d4d53310c4271e6011b796fc1bff.tar.gz gnuradio-68ce6b4a9b90d4d53310c4271e6011b796fc1bff.tar.bz2 gnuradio-68ce6b4a9b90d4d53310c4271e6011b796fc1bff.zip |
Add additional conditionalization of networking includes
Diffstat (limited to 'gnuradio-core')
-rwxr-xr-x | gnuradio-core/src/lib/io/gr_udp_sink.cc | 5 | ||||
-rwxr-xr-x | gnuradio-core/src/lib/io/gr_udp_source.cc | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/io/gr_udp_sink.cc b/gnuradio-core/src/lib/io/gr_udp_sink.cc index a323aef98..73e6d0283 100755 --- a/gnuradio-core/src/lib/io/gr_udp_sink.cc +++ b/gnuradio-core/src/lib/io/gr_udp_sink.cc @@ -31,7 +31,12 @@ #include <string.h> #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> //usually included by <netdb.h>? +#endif typedef void* optval_t; #elif defined(HAVE_WINDOWS_H) // if not posix, assume winsock diff --git a/gnuradio-core/src/lib/io/gr_udp_source.cc b/gnuradio-core/src/lib/io/gr_udp_source.cc index 880388e5e..15f83892c 100755 --- a/gnuradio-core/src/lib/io/gr_udp_source.cc +++ b/gnuradio-core/src/lib/io/gr_udp_source.cc @@ -32,6 +32,12 @@ #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 |