--- a/src/blob.hpp
+++ b/src/blob.hpp
@@ -31,6 +31,7 @@
 #define __ZMQ_BLOB_HPP_INCLUDED__
 
 #include <string>
+#include <ios>
 #include <string.h>
 
 // Borrowed from id3lib_strings.h: