]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile of the new compat shims on NetBSD.
authorRoy Marples <roy@marples.name>
Sat, 10 Nov 2012 16:53:00 +0000 (16:53 +0000)
committerRoy Marples <roy@marples.name>
Sat, 10 Nov 2012 16:53:00 +0000 (16:53 +0000)
compat/posix_spawn.c
compat/posix_spawn.h

index eb0685f6ad664641122cd6bc3105d3a383b75ec8..35dcf0feb35a13aec57f2a47b0b190e7a0d239a6 100644 (file)
 #include "../common.h"
 #include "posix_spawn.h"
 
+/* Guess */
+#ifndef _SIG_MAXSIG
+#define _SIG_MAXSIG SIGPWR
+#endif
+
 extern char **environ;
 
 static int
index 653f00a6e84c716925332387797a9afc7c841dec..5c23231d42a5b1b8863895686f5024fbc133a301 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef POSIX_SPAWN_H
 #define POSIX_SPAWN_H
 
+#include <signal.h>
+
 typedef struct {
        short posix_attr_flags;
 #define POSIX_SPAWN_SETSIGDEF          0x10