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/audit-packages Include nbco...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/600339108df5
branches:  trunk
changeset: 531176:600339108df5
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Mon Jul 23 12:29:32 2007 +0000

description:
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:

 pkgtools/pkg_install/files/audit-packages/audit-packages.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 7fb02b69a2b8 -r 600339108df5 pkgtools/pkg_install/files/audit-packages/audit-packages.c
--- a/pkgtools/pkg_install/files/audit-packages/audit-packages.c        Mon Jul 23 12:10:56 2007 +0000
+++ b/pkgtools/pkg_install/files/audit-packages/audit-packages.c        Mon Jul 23 12:29:32 2007 +0000
@@ -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@localhost>.
@@ -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>



Home | Main Index | Thread Index | Old Index