]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Dirent.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / Dirent.h
index 513779f81e91b6ff839008cbc3fdacba4e86dafa..7461f91e8b1d70c7c2638150093727ce4e5244d8 100644 (file)
@@ -30,6 +30,7 @@
 
 // florez-l: use this file in windows environments
 #if defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
+
 /*
  * Define architecture flags so we don't need to include windows.h.
  * Avoiding windows.h makes it simpler to use windows sockets in conjunction
@@ -840,6 +841,7 @@ dirent_set_errno(
 
 // florez-l: use the standard linux header
 #else // defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
+#  include <sys/types.h>
 #  include <dirent.h>
 #endif // defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )