]> git.armaanb.net Git - opendoas.git/blobdiff - libopenbsd/closefrom.c
Replace build/installation instructions with discouragements
[opendoas.git] / libopenbsd / closefrom.c
index 8f6608485ef6be1e4fecd5af2d4efa434d163855..fba73e75fa5bf37b4398c54d643507b897853375 100644 (file)
@@ -22,9 +22,7 @@
  * 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>
@@ -32,6 +30,7 @@
 #include <stdlib.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <paths.h>
 #ifdef HAVE_PSTAT_GETPROC
 # include <sys/pstat.h>
 #else
@@ -133,5 +132,3 @@ closefrom(int lowfd)
     /* Do things the slow way. */
     closefrom_fallback(lowfd);
 }
-
-#endif /* HAVE_CLOSEFROM */