diff options
author | joerg <joerg> | 2008-03-20 20:26:52 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-03-20 20:26:52 +0000 |
commit | aeb4ef2edfab5cff50e3d64f4311b2a8fe8c5759 (patch) | |
tree | b0c101db82e56af8afbe935c543c5bc322ebe354 /pkgtools/pkg_install | |
parent | 5f1e17c098c00c478986ee18251b7f451562b17e (diff) | |
download | pkgsrc-aeb4ef2edfab5cff50e3d64f4311b2a8fe8c5759.tar.gz |
If this is not a native NetBSD build, use the libnbcompat version of
unistd.h.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/admin/audit.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <sys/cdefs.h> #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 <string.h> #endif -#if HAVE_UNISTD_H +#ifdef NETBSD #include <unistd.h> +#else +#include <nbcompat/unistd.h> #endif #include "admin.h" |