summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-07-23 12:29:32 +0000
committeradrianp <adrianp@pkgsrc.org>2007-07-23 12:29:32 +0000
commitae1629c33a569c80a1d00953c47a01df482f79e1 (patch)
tree5cbf79a8cb254c2a1cb4f2211978bea526f89728 /pkgtools
parentebe8eba5a15f17df9a46aadd994f3057b15a62d4 (diff)
downloadpkgsrc-ae1629c33a569c80a1d00953c47a01df482f79e1.tar.gz
Include nbcompat.h to sort out err.h
Add a conditional include for cdefs.h This resolves the remainder of the issues in PR #36662 Thanks to Stuart Shelton for testing and feedback.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/audit-packages/audit-packages.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/audit-packages/audit-packages.c b/pkgtools/pkg_install/files/audit-packages/audit-packages.c
index d847e5203b4..0d4885cf837 100644
--- a/pkgtools/pkg_install/files/audit-packages/audit-packages.c
+++ b/pkgtools/pkg_install/files/audit-packages/audit-packages.c
@@ -1,4 +1,4 @@
-/* $NetBSD: audit-packages.c,v 1.4 2007/07/22 13:22:21 tnn Exp $ */
+/* $NetBSD: audit-packages.c,v 1.5 2007/07/23 12:29:32 adrianp Exp $ */
/*
* Copyright (c) 2007 Adrian Portelli <adrianp@NetBSD.org>.
@@ -35,6 +35,7 @@
#include "config.h"
#endif
+#include <nbcompat.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
@@ -44,7 +45,9 @@
#ifdef HAVE_INTTYPES_H
#include <stdint.h>
#endif
-#include <err.h>
+#ifdef HAVE_SYS_CDEFS_H
+#include <sys/cdefs.h>
+#endif
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>