diff options
author | adrianp <adrianp> | 2007-07-23 12:29:32 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2007-07-23 12:29:32 +0000 |
commit | d0913c77aaeaf3ab3ca17ff9e779ed5dd8c50590 (patch) | |
tree | 5cbf79a8cb254c2a1cb4f2211978bea526f89728 /pkgtools/pkg_install | |
parent | 6f608b9433417e55b2a28b2800fbee9f909857b2 (diff) | |
download | pkgsrc-d0913c77aaeaf3ab3ca17ff9e779ed5dd8c50590.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/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/audit-packages/audit-packages.c | 7 |
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> |