]> Creatis software - clitk.git/commitdiff
Add missing include of unistd.h
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Wed, 11 Apr 2012 15:47:22 +0000 (17:47 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Wed, 11 Apr 2012 15:47:22 +0000 (17:47 +0200)
- gcc 4.7 standard library does not include unistd.h anymore.

common/clitkMemoryUsage.cxx
common/clitkXdrImageIOWriter.cxx

index 12cb91c791f3dd2d3b881d3ac808b53a558168b7..c0b78ce4ddee203a40a0e216a1ffca69d80d0af9 100644 (file)
@@ -19,6 +19,7 @@
 // clitk include
 #include "clitkCommon.h"
 #include "clitkMemoryUsage.h"
+#include <unistd.h>
 
 void clitk::PrintMemory(bool verbose, std::string s) 
 {
index a9eb77b62d1e9f889cef65632c7e38068f31c848..1e826db7d6ab07b49142085d84d2ce6180069fba 100644 (file)
@@ -97,6 +97,7 @@ void clitk::XdrImageIO::Write(const void* buffer)
 #include <math.h>
 #include <stdlib.h>
 #include <limits.h>
+#include <unistd.h>
 #if !defined(unix) && !defined(__APPLE__)
 #include <io.h>
 #endif