summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/io
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/lib/io')
-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
3 files changed, 10 insertions, 0 deletions
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