Switch to unified view
a/src/utils/closefrom.cpp | b/src/utils/closefrom.cpp | ||
---|---|---|---|
... |
... |
||
141 | void libclf_setmaxfd(int max) |
141 | void libclf_setmaxfd(int max) |
142 | { |
142 | { |
143 | closefrom_maxfd = max; |
143 | closefrom_maxfd = max; |
144 | } |
144 | } |
145 | 145 | ||
146 | #ifdef sun |
||
147 | #include <limits.h> |
||
148 | #endif |
||
146 | int libclf_closefrom(int fd0) |
149 | int libclf_closefrom(int fd0) |
147 | { |
150 | { |
148 | int i, maxfd = closefrom_maxfd; |
151 | int i, maxfd = closefrom_maxfd; |
149 | 152 | ||
150 | if (maxfd < 0) { |
153 | if (maxfd < 0) { |