Diff reduce with upstream and consolidate #ifdefs where possible

This commit is contained in:
Enji Cooper 2017-01-15 22:00:59 +00:00
parent 8a979e7ad7
commit 6a93de28a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312243
9 changed files with 4 additions and 31 deletions

View File

@ -34,9 +34,6 @@ __COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
__RCSID("$NetBSD: t_proc2.c,v 1.3 2017/01/13 21:30:41 christos Exp $");
#ifdef __FreeBSD__
#include <sys/types.h> /* for kqueue(2) */
#endif
#include <sys/event.h>
#include <sys/time.h>
#include <sys/types.h>

View File

@ -32,9 +32,6 @@
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_proc3.c,v 1.3 2017/01/13 21:30:41 christos Exp $");
#ifdef __FreeBSD__
#include <sys/types.h> /* for kqueue(2) */
#endif
#include <sys/event.h>
#include <sys/time.h>
#include <sys/types.h>

View File

@ -34,9 +34,6 @@ __COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
__RCSID("$NetBSD: t_sig.c,v 1.3 2017/01/13 21:30:41 christos Exp $");
#ifdef __FreeBSD__
#include <sys/types.h> /* for kqueue(2) */
#endif
#include <sys/event.h>
#include <sys/ioctl.h>
#include <sys/param.h>

View File

@ -1,6 +1,3 @@
#ifdef __FreeBSD__
#include <sys/types.h> /* for kqueue(2) */
#endif
#include <sys/event.h>
#include <sys/stat.h>
#include <sys/time.h>

View File

@ -26,10 +26,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef __FreeBSD__
/* kqueue(2) on FreeBSD requires sys/types.h for uintptr_t; NetBSD doesn't. */
#include <sys/types.h>
#endif
#include <sys/cdefs.h>
#include <sys/event.h>
#include <sys/signal.h>

View File

@ -45,16 +45,14 @@ __RCSID("$NetBSD: t_kevent.c,v 1.7 2015/02/05 13:55:37 isaki Exp $");
#include <err.h>
#ifdef __NetBSD__
#include <sys/drvctlio.h>
#else
#define DRVCTLDEV "/nonexistent"
#endif
#include <sys/event.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/wait.h>
#ifdef __FreeBSD__
#define DRVCTLDEV "/nonexistent"
#endif
ATF_TC(kevent_zerotimer);
ATF_TC_HEAD(kevent_zerotimer, tc)
{

View File

@ -75,11 +75,9 @@ __RCSID("$NetBSD: t_mmap.c,v 1.11 2017/01/13 20:43:11 christos Exp $");
#include <paths.h>
#ifdef __NetBSD__
#include <machine/disklabel.h>
#endif
#ifdef __FreeBSD__
#include <sys/disklabel.h>
#else
#include <stdint.h>
#include <sys/disklabel.h>
#endif
static long page = 0;

View File

@ -45,10 +45,6 @@ __RCSID("$NetBSD: t_wait.c,v 1.8 2017/01/13 19:28:55 christos Exp $");
#include <atf-c.h>
#ifdef __FreeBSD__
#define wrusage __wrusage
#endif
ATF_TC(wait6_invalid);
ATF_TC_HEAD(wait6_invalid, tc)
{

View File

@ -29,9 +29,6 @@
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_wait_noproc.c,v 1.5 2016/11/09 17:50:19 kamil Exp $");
#ifdef __FreeBSD__
#include <sys/param.h> /* For NBBY -- it's in sys/types.h on NetBSD */
#endif
#include <sys/wait.h>
#include <sys/resource.h>