diff --git a/LucasChainGenerator/src/LucasChainGen.c b/LucasChainGenerator/src/LucasChainGen.c
index a53d1d44eb67988ecf4d9266302c1f0602af6bcf..a88dd23f76c6ee0e84da893267f01f972e1de354 100644
--- a/LucasChainGenerator/src/LucasChainGen.c
+++ b/LucasChainGenerator/src/LucasChainGen.c
@@ -24,7 +24,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
-#ifndef _MSC_VER
+#ifdef HAVE_SYS_RESOURCE_H
 #  include <sys/resource.h>
 #endif
 #include <time.h>