]> git.armaanb.net Git - opendoas.git/blobdiff - libopenbsd/closefrom.c
use config.h and link objects instead of libopenbsd.a
[opendoas.git] / libopenbsd / closefrom.c
index 8f6608485ef6be1e4fecd5af2d4efa434d163855..5df58b83feea2715bdcc6f5129119529001aa470 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>
@@ -133,5 +131,3 @@ closefrom(int lowfd)
     /* Do things the slow way. */
     closefrom_fallback(lowfd);
 }
-
-#endif /* HAVE_CLOSEFROM */