From 89a508fbb5de6a2c0af91f92b7d76c4693ef01d5 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 27 Apr 2013 21:35:24 +0000 Subject: [PATCH] Systematically include sys/featuretest.h when _NETBSD_SOURCE is used. Some are redundant, but make verification with grep much easier. --- include/fenv.h | 3 ++- include/search.h | 3 ++- include/ttyent.h | 3 ++- include/wctype.h | 3 ++- sys/arch/x86/include/float.h | 4 +++- sys/netinet/in.h | 3 ++- sys/netinet6/in6.h | 4 +++- sys/sys/pset.h | 3 ++- sys/sys/siginfo.h | 3 ++- sys/sys/spawn.h | 3 ++- 10 files changed, 22 insertions(+), 10 deletions(-) diff --git a/include/fenv.h b/include/fenv.h index fb3a4d785f1a..9baa46e1f0e6 100644 --- a/include/fenv.h +++ b/include/fenv.h @@ -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 #include __BEGIN_DECLS diff --git a/include/search.h b/include/search.h index 55fed5a3631e..302199a3c2b0 100644 --- a/include/search.h +++ b/include/search.h @@ -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 @@ -9,6 +9,7 @@ #define _SEARCH_H_ #include +#include #include #ifdef _BSD_SIZE_T_ diff --git a/include/ttyent.h b/include/ttyent.h index da30f13cf560..bee306f1db53 100644 --- a/include/ttyent.h +++ b/include/ttyent.h @@ -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 +#include #define _PATH_TTYS "/etc/ttys" diff --git a/include/wctype.h b/include/wctype.h index cf22b6a1bbcd..bbf03cf573c5 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -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 +#include #include #ifdef _BSD_WINT_T_ diff --git a/sys/arch/x86/include/float.h b/sys/arch/x86/include/float.h index 5f5d8afb2ea5..fff09f9e7cd7 100644 --- a/sys/arch/x86/include/float.h +++ b/sys/arch/x86/include/float.h @@ -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 + #define LDBL_MANT_DIG 64 #define LDBL_EPSILON 1.0842021724855044340E-19L #define LDBL_DIG 18 diff --git a/sys/netinet/in.h b/sys/netinet/in.h index d606ced4d5c3..7807cd5ae6ef 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -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 #include #ifndef uint8_t diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h index ed613b744b9e..2dabffcfe31a 100644 --- a/sys/netinet6/in6.h +++ b/sys/netinet6/in6.h @@ -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 + #ifndef __KAME_NETINET_IN_H_INCLUDED_ #error "do not include netinet6/in6.h directly, include netinet/in.h. see RFC2553" #endif diff --git a/sys/sys/pset.h b/sys/sys/pset.h index a7143a44c5fd..6d32f7d5f129 100644 --- a/sys/sys/pset.h +++ b/sys/sys/pset.h @@ -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 @@ -30,6 +30,7 @@ #define _SYS_PSET_H_ #include +#include #include /* Types of processor-sets */ diff --git a/sys/sys/siginfo.h b/sys/sys/siginfo.h index f5cd469ce6c9..da74daecde28 100644 --- a/sys/sys/siginfo.h +++ b/sys/sys/siginfo.h @@ -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 +#include #ifdef _KERNEL #include #endif diff --git a/sys/sys/spawn.h b/sys/sys/spawn.h index dbe83c11d3b7..af2ca4fe3704 100644 --- a/sys/sys/spawn.h +++ b/sys/sys/spawn.h @@ -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 @@ -32,6 +32,7 @@ #define _SYS_SPAWN_H_ #include +#include #include #include #include