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
This commit is contained in:
parent
d31a976084
commit
84763702c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273393
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user