Date: Tue, 21 Oct 2014 18:00:56 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273393 - head/contrib/netbsd-tests/lib/libc/sys Message-ID: <201410211800.s9LI0u5u002553@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Tue Oct 21 18:00:55 2014 New Revision: 273393 URL: https://svnweb.freebsd.org/changeset/base/273393 Log: 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 Modified: head/contrib/netbsd-tests/lib/libc/sys/t_write.c Modified: head/contrib/netbsd-tests/lib/libc/sys/t_write.c ============================================================================== --- head/contrib/netbsd-tests/lib/libc/sys/t_write.c Tue Oct 21 17:59:27 2014 (r273392) +++ head/contrib/netbsd-tests/lib/libc/sys/t_write.c Tue Oct 21 18:00:55 2014 (r273393) @@ -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/1 #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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410211800.s9LI0u5u002553>