Switch to unified view
a/src/utils/closefrom.cpp | b/src/utils/closefrom.cpp | ||
---|---|---|---|
... |
... |
||
95 | } |
95 | } |
96 | return fcntl(fd0, F_CLOSEM, 0); |
96 | return fcntl(fd0, F_CLOSEM, 0); |
97 | } |
97 | } |
98 | 98 | ||
99 | /*************************************************************************/ |
99 | /*************************************************************************/ |
100 | #elif defined(linux) |
100 | #elif (defined(linux) || defined(__linux)) |
101 | 101 | ||
102 | /* Use /proc/self/fd directory */ |
102 | /* Use /proc/self/fd directory */ |
103 | #include <sys/types.h> |
103 | #include <sys/types.h> |
104 | #include <dirent.h> |
104 | #include <dirent.h> |
105 | 105 |