summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/usrp_e100/fpga_downloader.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e100/fpga_downloader.cpp b/host/lib/usrp/usrp_e100/fpga_downloader.cpp
index 95665da83..018a120d6 100644
--- a/host/lib/usrp/usrp_e100/fpga_downloader.cpp
+++ b/host/lib/usrp/usrp_e100/fpga_downloader.cpp
@@ -16,7 +16,15 @@
//
#include <uhd/config.hpp>
+#ifdef UHD_DLL_EXPORTS
#include <uhd/exception.hpp>
+#else //special case when this file is externally included
+#include <stdexcept>
+namespace uhd{
+ typedef std::runtime_error os_error;
+ typedef std::runtime_error io_error;
+}
+#endif
#include <iostream>
#include <sstream>