From: Roy Marples Date: Sat, 10 Nov 2012 16:53:00 +0000 (+0000) Subject: Fix compile of the new compat shims on NetBSD. X-Git-Tag: v5.99.3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=147de67160f581a4d0eaadf930710ee04aa868f0;p=thirdparty%2Fdhcpcd.git Fix compile of the new compat shims on NetBSD. --- diff --git a/compat/posix_spawn.c b/compat/posix_spawn.c index eb0685f6..35dcf0fe 100644 --- a/compat/posix_spawn.c +++ b/compat/posix_spawn.c @@ -42,6 +42,11 @@ #include "../common.h" #include "posix_spawn.h" +/* Guess */ +#ifndef _SIG_MAXSIG +#define _SIG_MAXSIG SIGPWR +#endif + extern char **environ; static int diff --git a/compat/posix_spawn.h b/compat/posix_spawn.h index 653f00a6..5c23231d 100644 --- a/compat/posix_spawn.h +++ b/compat/posix_spawn.h @@ -28,6 +28,8 @@ #ifndef POSIX_SPAWN_H #define POSIX_SPAWN_H +#include + typedef struct { short posix_attr_flags; #define POSIX_SPAWN_SETSIGDEF 0x10