From 08936428827ff801db174e8a2db1cf26ecff857c Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 9 Jul 2011 19:39:30 -0700 Subject: core: added missing io.h includes on cc files Added to the cc files which were missing io.h and required compatibility declarations in io.h to compile. Applies to compiling under MSVC with cmake work branch. --- gnuradio-core/src/lib/general/gr_circular_file.cc | 4 ++++ gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc | 3 +++ gnuradio-core/src/lib/io/gr_file_descriptor_source.cc | 3 +++ gnuradio-core/src/lib/io/gr_tagged_file_sink.cc | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/gnuradio-core/src/lib/general/gr_circular_file.cc b/gnuradio-core/src/lib/general/gr_circular_file.cc index c9222597a..4d88b9d99 100644 --- a/gnuradio-core/src/lib/general/gr_circular_file.cc +++ b/gnuradio-core/src/lib/general/gr_circular_file.cc @@ -42,6 +42,10 @@ #include #include +#ifdef HAVE_IO_H +#include +#endif + static const int HEADER_SIZE = 4096; static const int HEADER_MAGIC = 0xEB021026; diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc index 09fb6c826..11e0a8eb9 100644 --- a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc +++ b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc @@ -34,6 +34,9 @@ #include #include +#ifdef HAVE_IO_H +#include +#endif gr_file_descriptor_sink::gr_file_descriptor_sink (size_t itemsize, int fd) : gr_sync_block ("file_descriptor_sink", diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc b/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc index 700ad4aef..334a57848 100644 --- a/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc +++ b/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc @@ -35,6 +35,9 @@ #include #include +#ifdef HAVE_IO_H +#include +#endif gr_file_descriptor_source::gr_file_descriptor_source (size_t itemsize, int fd, diff --git a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc index 154611c32..91618bad6 100644 --- a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc +++ b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc @@ -34,6 +34,10 @@ #include #include +#ifdef HAVE_IO_H +#include +#endif + #ifdef O_BINARY #define OUR_O_BINARY O_BINARY #else -- cgit