From 92b9a3b5f8a3aba987cad81874919386057ba6c2 Mon Sep 17 00:00:00 2001 From: ngie Date: Tue, 21 Oct 2014 18:00:55 +0000 Subject: Port t_write to FreeBSD - Mark the signo variable for the signal handle __unused - Use limits.h instead of sys/syslimits.h (the latter does not exist on FreeBSD) Sponsored by: EMC / Isilon Storage Division --- contrib/netbsd-tests/lib/libc/sys/t_write.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'contrib/netbsd-tests/lib/libc') diff --git a/contrib/netbsd-tests/lib/libc/sys/t_write.c b/contrib/netbsd-tests/lib/libc/sys/t_write.c index 2b1324a..d7a06e0 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_write.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_write.c @@ -32,7 +32,9 @@ __COPYRIGHT("@(#) Copyright (c) 2008\ __RCSID("$NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $"); #include +#if defined(__NetBSD__) #include +#endif #include #include @@ -43,13 +45,21 @@ __RCSID("$NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $"); #include #include +#if defined(__FreeBSD__) +#include +#endif + static void sighandler(int); static bool fail = false; static const char *path = "write"; static void +#if defined(__FreeBSD__) +sighandler(int signo __unused) +#else sighandler(int signo) +#endif { fail = false; } -- cgit v1.1