* PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
*/
-#include <config.h>
-
-#ifndef HAVE_CLOSEFROM
+#include "config.h"
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <limits.h>
+#include <paths.h>
#ifdef HAVE_PSTAT_GETPROC
# include <sys/pstat.h>
#else
/* Do things the slow way. */
closefrom_fallback(lowfd);
}
-
-#endif /* HAVE_CLOSEFROM */