Switch to unified view
a/src/closefrom.cpp | b/src/closefrom.cpp | ||
---|---|---|---|
... |
... |
||
109 | } |
109 | } |
110 | return fcntl(fd0, F_CLOSEM, 0); |
110 | return fcntl(fd0, F_CLOSEM, 0); |
111 | } |
111 | } |
112 | 112 | ||
113 | /*************************************************************************/ |
113 | /*************************************************************************/ |
114 | #elif (defined(linux) || defined(__linux)) |
114 | #elif (defined(linux) || defined(__linux) || defined(__linux__))
|
115 | 115 | ||
116 | /* Use /proc/self/fd directory */ |
116 | /* Use /proc/self/fd directory */ |
117 | #include <sys/types.h> |
117 | #include <sys/types.h> |
118 | #include <dirent.h> |
118 | #include <dirent.h> |
119 | 119 |