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)
#ifdef HAVE_CLOSEFROM
closefrom(fd);
#else
int i;= sysconf(_SC_OPEN_MAX);
for (i = sysconf(_SC_OPEN_MAX); i > STDERR_FILENO; i--)
int i = sysconf(_SC_OPEN_MAX);
for (i = sysconf(_SC_OPEN_MAX); i > fd; i--)
(void)close(i);
#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