Browse Source

build on mac too

David Rose 16 years ago
parent
commit
90f0c9d671
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/plugin/handleStreamBuf.cxx

+ 4 - 1
direct/src/plugin/handleStreamBuf.cxx

@@ -22,9 +22,12 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
-#include <libio.h>
 #endif  // _WIN32
 
+#if !defined(_WIN32) && !defined(__APPLE__)
+#include <libio.h>
+#endif // !_WIN32 && !__APPLE__
+
 static const size_t handle_buffer_size = 4096;
 
 ////////////////////////////////////////////////////////////////////