pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/admin If this is not a nati...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e15db6e8d3f3
branches:  trunk
changeset: 540002:e15db6e8d3f3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Mar 20 20:26:52 2008 +0000

description:
If this is not a native NetBSD build, use the libnbcompat version of
unistd.h.

diffstat:

 pkgtools/pkg_install/files/admin/audit.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 59f25ada5841 -r e15db6e8d3f3 pkgtools/pkg_install/files/admin/audit.c
--- a/pkgtools/pkg_install/files/admin/audit.c  Thu Mar 20 20:02:29 2008 +0000
+++ b/pkgtools/pkg_install/files/admin/audit.c  Thu Mar 20 20:26:52 2008 +0000
@@ -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 @@
 #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"



Home | Main Index | Thread Index | Old Index