]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile with posix_spawn now being required.
authorRoy Marples <roy@marples.name>
Wed, 22 Mar 2017 12:24:51 +0000 (12:24 +0000)
committerRoy Marples <roy@marples.name>
Wed, 22 Mar 2017 12:24:51 +0000 (12:24 +0000)
src/script.c

index a5b3a3029117c50777cb6f3decbd4138e7cd221a..429d9494e78b312378300df1b4de2a30a914aea9 100644 (file)
@@ -35,8 +35,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <signal.h>
-/* We can't include spawn.h here because it may not exist.
- * config.h will pull it in, or our compat one. */
+#include <spawn.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include "ipv6nd.h"
 #include "script.h"
 
-#ifdef HAVE_SPAWN_H
-#include <spawn.h>
-#else
-#include "compat/posix_spawn.h"
-#endif
-
 /* Allow the OS to define another script env var name */
 #ifndef RC_SVCNAME
 #define RC_SVCNAME "RC_SVCNAME"