diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-23 07:59:59 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-23 07:59:59 +0000 |
commit | 4062bfad9ca9383731755ab8530c3f4a55b1667b (patch) | |
tree | cf4fec7c28a8bfa7aa30ff247a5c26e945ee1e74 /contrib/netbsd-tests | |
parent | ef8a3be81f0fd1cd987802e5a11cf7f20854f616 (diff) | |
download | FreeBSD-src-4062bfad9ca9383731755ab8530c3f4a55b1667b.zip FreeBSD-src-4062bfad9ca9383731755ab8530c3f4a55b1667b.tar.gz |
- Mark sig/signo __unused
- Do not provide a relative path via #include "h_macros.h"
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_sigaction.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c b/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c index 8022353..132dbcb 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c @@ -42,12 +42,20 @@ __RCSID("$NetBSD: t_sigaction.c,v 1.2 2012/11/07 16:51:16 pgoyette Exp $"); #include <atf-c.h> #include <atf-c/config.h> +#ifdef __NetBSD__ #include "../../../h_macros.h" +#else +#include "h_macros.h" +#endif static bool handler_called = false; static void +#ifdef __FreeBSD__ +handler(int signo __unused) +#else handler(int signo) +#endif { handler_called = true; } @@ -80,7 +88,11 @@ wait_and_check_child(const pid_t pid, const char *fail_message) } static void +#ifdef __FreeBSD__ +catch(int sig __unused) +#else catch(int sig) +#endif { return; } |