Make the code compile also in g++ 4.7 where read/write are not
[SXSI/XMLTree.git] / bit-vector.cpp
index 986e098..2c401a5 100644 (file)
@@ -1,6 +1,10 @@
+
 #include <stdexcept>
 #include "bit-vector.hpp"
 #include <cstdio>
+extern "C" {
+#include <unistd.h>
+}
 
 static inline uint8_t pow2_mult8(uint8_t x){
   return (~((x & (x-1))==0) + 1) & (x >> 3);