Systematically include sys/featuretest.h when _NETBSD_SOURCE is used.

Some are redundant, but make verification with grep much easier.
This commit is contained in:
joerg 2013-04-27 21:35:24 +00:00
parent e8c1e0eee9
commit 89a508fbb5
10 changed files with 22 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fenv.h,v 1.7 2012/03/22 03:06:06 dholland Exp $ */
/* $NetBSD: fenv.h,v 1.8 2013/04/27 21:35:25 joerg Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@ -32,6 +32,7 @@
#ifndef _FENV_H_
#define _FENV_H_
#include <sys/featuretest.h>
#include <machine/fenv.h>
__BEGIN_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: search.h,v 1.19 2011/09/14 23:34:26 christos Exp $ */
/* $NetBSD: search.h,v 1.20 2013/04/27 21:35:25 joerg Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>
@ -9,6 +9,7 @@
#define _SEARCH_H_
#include <sys/cdefs.h>
#include <sys/featuretest.h>
#include <machine/ansi.h>
#ifdef _BSD_SIZE_T_

View File

@ -1,4 +1,4 @@
/* $NetBSD: ttyent.h,v 1.14 2006/04/17 23:29:21 salo Exp $ */
/* $NetBSD: ttyent.h,v 1.15 2013/04/27 21:35:25 joerg Exp $ */
/*
* Copyright (c) 1989, 1993
@ -35,6 +35,7 @@
#define _TTYENT_H_
#include <sys/cdefs.h>
#include <sys/featuretest.h>
#define _PATH_TTYS "/etc/ttys"

View File

@ -1,4 +1,4 @@
/* $NetBSD: wctype.h,v 1.8 2013/04/16 11:39:13 joerg Exp $ */
/* $NetBSD: wctype.h,v 1.9 2013/04/27 21:35:25 joerg Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@ -32,6 +32,7 @@
#define _WCTYPE_H_
#include <sys/cdefs.h>
#include <sys/featuretest.h>
#include <sys/ansi.h>
#ifdef _BSD_WINT_T_

View File

@ -1,8 +1,10 @@
/* $NetBSD: float.h,v 1.5 2003/10/23 23:26:06 kleink Exp $ */
/* $NetBSD: float.h,v 1.6 2013/04/27 21:35:25 joerg Exp $ */
#ifndef _X86_FLOAT_H_
#define _X86_FLOAT_H_
#include <sys/featuretest.h>
#define LDBL_MANT_DIG 64
#define LDBL_EPSILON 1.0842021724855044340E-19L
#define LDBL_DIG 18

View File

@ -1,4 +1,4 @@
/* $NetBSD: in.h,v 1.87 2012/06/22 14:54:35 christos Exp $ */
/* $NetBSD: in.h,v 1.88 2013/04/27 21:35:24 joerg Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -39,6 +39,7 @@
#ifndef _NETINET_IN_H_
#define _NETINET_IN_H_
#include <sys/featuretest.h>
#include <machine/int_types.h>
#ifndef uint8_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: in6.h,v 1.70 2012/06/22 14:54:35 christos Exp $ */
/* $NetBSD: in6.h,v 1.71 2013/04/27 21:35:24 joerg Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@ -64,6 +64,8 @@
#ifndef _NETINET6_IN6_H_
#define _NETINET6_IN6_H_
#include <sys/featuretest.h>
#ifndef __KAME_NETINET_IN_H_INCLUDED_
#error "do not include netinet6/in6.h directly, include netinet/in.h. see RFC2553"
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pset.h,v 1.3 2008/05/26 17:45:51 rmind Exp $ */
/* $NetBSD: pset.h,v 1.4 2013/04/27 21:35:24 joerg Exp $ */
/*
* Copyright (c) 2008, Mindaugas Rasiukevicius <rmind at NetBSD org>
@ -30,6 +30,7 @@
#define _SYS_PSET_H_
#include <sys/cdefs.h>
#include <sys/featuretest.h>
#include <sys/types.h>
/* Types of processor-sets */

View File

@ -1,4 +1,4 @@
/* $NetBSD: siginfo.h,v 1.23 2013/02/12 02:24:42 matt Exp $ */
/* $NetBSD: siginfo.h,v 1.24 2013/04/27 21:35:24 joerg Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -33,6 +33,7 @@
#define _SYS_SIGINFO_H_
#include <machine/signal.h>
#include <sys/featuretest.h>
#ifdef _KERNEL
#include <sys/queue.h>
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: spawn.h,v 1.3 2012/04/30 21:19:58 rmind Exp $ */
/* $NetBSD: spawn.h,v 1.4 2013/04/27 21:35:25 joerg Exp $ */
/*-
* Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
@ -32,6 +32,7 @@
#define _SYS_SPAWN_H_
#include <sys/cdefs.h>
#include <sys/featuretest.h>
#include <sys/types.h>
#include <sys/sigtypes.h>
#include <sys/signal.h>