summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2011-07-09 19:39:30 -0700
committerJosh Blum2011-07-20 11:52:14 -0700
commit08936428827ff801db174e8a2db1cf26ecff857c (patch)
treea10bdb5c03f9c33ac06cb28b4aa22a7884e50b5a
parent34488d41f4bb066fb506f6851e92daf02609262b (diff)
downloadgnuradio-08936428827ff801db174e8a2db1cf26ecff857c.tar.gz
gnuradio-08936428827ff801db174e8a2db1cf26ecff857c.tar.bz2
gnuradio-08936428827ff801db174e8a2db1cf26ecff857c.zip
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.
-rw-r--r--gnuradio-core/src/lib/general/gr_circular_file.cc4
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc3
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_source.cc3
-rw-r--r--gnuradio-core/src/lib/io/gr_tagged_file_sink.cc4
4 files changed, 14 insertions, 0 deletions
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 <stdio.h>
#include <string.h>
+#ifdef HAVE_IO_H
+#include <io.h>
+#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 <stdexcept>
#include <stdio.h>
+#ifdef HAVE_IO_H
+#include <io.h>
+#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 <stdio.h>
#include <string.h>
+#ifdef HAVE_IO_H
+#include <io.h>
+#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 <iostream>
#include <gr_tag_info.h>
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif
+
#ifdef O_BINARY
#define OUR_O_BINARY O_BINARY
#else