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