From 085b597d7b56e9776396d3a6639e3a9de7647d90 Mon Sep 17 00:00:00 2001
From: Leonardo Florez <leonardo@iMac-de-Andrea.local>
Date: Thu, 3 Nov 2016 21:00:38 -0500
Subject: [PATCH] ...

---
 lib/cpPlugins/Interface/Dirent.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/cpPlugins/Interface/Dirent.h b/lib/cpPlugins/Interface/Dirent.h
index 513779f..7461f91 100644
--- a/lib/cpPlugins/Interface/Dirent.h
+++ b/lib/cpPlugins/Interface/Dirent.h
@@ -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__ )
 
-- 
2.49.0