diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-21 18:00:55 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-21 18:00:55 +0000 |
commit | 92b9a3b5f8a3aba987cad81874919386057ba6c2 (patch) | |
tree | 47e6f2f5a32cc454e074350a9d0c7adf1a2e0b7d /contrib/netbsd-tests/lib/libc | |
parent | 6c273ee4a72257dada6db6f07fefa36afed9bfda (diff) | |
download | FreeBSD-src-92b9a3b5f8a3aba987cad81874919386057ba6c2.zip FreeBSD-src-92b9a3b5f8a3aba987cad81874919386057ba6c2.tar.gz |
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
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_write.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <sys/uio.h> +#if defined(__NetBSD__) #include <sys/syslimits.h> +#endif #include <atf-c.h> #include <errno.h> @@ -43,13 +45,21 @@ __RCSID("$NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $"); #include <string.h> #include <unistd.h> +#if defined(__FreeBSD__) +#include <limits.h> +#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; } |