From c5e343fa4e547d16c6797e47a9be68cbfb90b31e Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 20 Mar 2008 20:26:52 +0000 Subject: If this is not a native NetBSD build, use the libnbcompat version of unistd.h. --- pkgtools/pkg_install/files/admin/audit.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pkgtools/pkg_install') diff --git a/pkgtools/pkg_install/files/admin/audit.c b/pkgtools/pkg_install/files/admin/audit.c index bc245fa7c8f..5d2ddc00745 100644 --- a/pkgtools/pkg_install/files/admin/audit.c +++ b/pkgtools/pkg_install/files/admin/audit.c @@ -1,4 +1,4 @@ -/* $NetBSD: audit.c,v 1.3 2008/03/19 15:33:12 joerg Exp $ */ +/* $NetBSD: audit.c,v 1.4 2008/03/20 20:26:52 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -8,7 +8,7 @@ #include #endif #ifndef lint -__RCSID("$NetBSD: audit.c,v 1.3 2008/03/19 15:33:12 joerg Exp $"); +__RCSID("$NetBSD: audit.c,v 1.4 2008/03/20 20:26:52 joerg Exp $"); #endif /*- @@ -67,8 +67,10 @@ __RCSID("$NetBSD: audit.c,v 1.3 2008/03/19 15:33:12 joerg Exp $"); #if HAVE_STRING_H #include #endif -#if HAVE_UNISTD_H +#ifdef NETBSD #include +#else +#include #endif #include "admin.h" -- cgit v1.2.3