From 28bb169a574806730b5e289d78e8661c5e55d9bd Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 14 Nov 2011 16:21:44 +0000 Subject: [PATCH] compile into nothing if _STANDALONE --- common/lib/libutil/getfstypename.c | 34 ++++++++++++++++-------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/common/lib/libutil/getfstypename.c b/common/lib/libutil/getfstypename.c index 68ab9371290b..79ea154816ed 100644 --- a/common/lib/libutil/getfstypename.c +++ b/common/lib/libutil/getfstypename.c @@ -1,4 +1,4 @@ -/* $NetBSD: getfstypename.c,v 1.4 2011/11/14 14:37:13 christos Exp $ */ +/* $NetBSD: getfstypename.c,v 1.5 2011/11/14 16:21:44 christos Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -35,22 +35,23 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ -#include -#if !defined(_KERNEL) && !defined(_STANDALONE) -# if !defined(lint) -__RCSID("$NetBSD: getfstypename.c,v 1.4 2011/11/14 14:37:13 christos Exp $"); -# endif -#else -__KERNEL_RCSID(0, "$NetBSD: getfstypename.c,v 1.4 2011/11/14 14:37:13 christos Exp $"); -#endif +#ifndef _STANDALONE +# include +# ifndef _KERNEL +# if !defined(lint) +__RCSID("$NetBSD: getfstypename.c,v 1.5 2011/11/14 16:21:44 christos Exp $"); +# endif +# else +__KERNEL_RCSID(0, "$NetBSD: getfstypename.c,v 1.5 2011/11/14 16:21:44 christos Exp $"); +# endif /* _KERNEL */ -#define FSTYPE_ENUMNAME fstype_enum -#include -#include -#include -#if !defined(_KERNEL) && !defined(_STANDALONE) -#include -#endif +# define FSTYPE_ENUMNAME fstype_enum +# include +# include +# include +# ifndef _KERNEL +# include +# endif const char * getfstypename(int fstype) @@ -124,3 +125,4 @@ getfstypename(int fstype) /* Stupid gcc, should know it is impossible to get here */ return DKW_PTYPE_UNKNOWN; } +#endif /* !_STANDALONE */