Commit fe7f0547 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Fix build if closefrom is not available

parent 73407265
...@@ -58,8 +58,8 @@ VSUB_closefrom(int fd) ...@@ -58,8 +58,8 @@ VSUB_closefrom(int fd)
#ifdef HAVE_CLOSEFROM #ifdef HAVE_CLOSEFROM
closefrom(fd); closefrom(fd);
#else #else
int i;= sysconf(_SC_OPEN_MAX); int i = sysconf(_SC_OPEN_MAX);
for (i = sysconf(_SC_OPEN_MAX); i > STDERR_FILENO; i--) for (i = sysconf(_SC_OPEN_MAX); i > fd; i--)
(void)close(i); (void)close(i);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment