From a71ee33abc7f90453e3983073deaa8a7d934d7c5 Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 27 Aug 2005 22:21:14 +0000 Subject: [PATCH] When building as host tool don't include "../../include/util.h". getlabel{offset,sector} and opendisk functions declared in that file are not used in this case anyway, and pulls in unwatned includes (e.g. doesn't exist on FreeBSD 4.*). XXX: We can probably undo the #if !HAVE_NBTOOL_CONFIG_H kludge in now. --- sbin/disklabel/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sbin/disklabel/main.c b/sbin/disklabel/main.c index b2cc68339b4d..cb0a7cc03021 100644 --- a/sbin/disklabel/main.c +++ b/sbin/disklabel/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.4 2005/06/17 21:20:18 dsl Exp $ */ +/* $NetBSD: main.c,v 1.5 2005/08/27 22:21:14 uwe Exp $ */ /* * Copyright (c) 1987, 1993 @@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\ static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95"; /* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */ #else -__RCSID("$NetBSD: main.c,v 1.4 2005/06/17 21:20:18 dsl Exp $"); +__RCSID("$NetBSD: main.c,v 1.5 2005/08/27 22:21:14 uwe Exp $"); #endif #endif /* not lint */ @@ -74,7 +74,6 @@ __RCSID("$NetBSD: main.c,v 1.4 2005/06/17 21:20:18 dsl Exp $"); #if HAVE_NBTOOL_CONFIG_H #include #include -#include "../../include/util.h" #include "../../include/disktab.h" #else #include