Explorar el Código

Use correct include for 'write()' on POSIX systems

Fixes compilation errors in ctkErrorLogModel.cpp for gcc 4.7
and clang.
Marco Nolden hace 13 años
padre
commit
96bb84d885
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Libs/Core/ctkErrorLogModel.cpp

+ 2 - 0
Libs/Core/ctkErrorLogModel.cpp

@@ -39,6 +39,8 @@
 #include <cstdio> // For _fileno or fileno
 #ifdef _MSC_VER
 # include <io.h> // For _write()
+#else
+# include <unistd.h>
 #endif
 
 // --------------------------------------------------------------------------