--- a/src/utils/closefrom.cpp
+++ b/src/utils/closefrom.cpp
@@ -97,7 +97,7 @@
 }
 
 /*************************************************************************/
-#elif defined(linux)
+#elif (defined(linux) || defined(__linux))
 
 /* Use /proc/self/fd directory */
 #include <sys/types.h>