summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-11-07 18:53:53 +0000
committertv <tv@pkgsrc.org>2005-11-07 18:53:53 +0000
commit97e479d1b2de312a14a911e459245c238a798526 (patch)
treef97fbd2b9d22a0e0a22b24972cfb3e354fa65f5d /pkgtools/pkg_install
parent3e29833c48a8cbf647edf9aaaa5b67ede1b51774 (diff)
downloadpkgsrc-97e479d1b2de312a14a911e459245c238a798526.tar.gz
Aren't we forgetting something here?
(Insert config.h, nbcompat.h, and bracket the other includes with #if HAVE_<file>.)
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/dewey.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/files/lib/dewey.c b/pkgtools/pkg_install/files/lib/dewey.c
index 2fbd9c84088..0bb04f90c7b 100644
--- a/pkgtools/pkg_install/files/lib/dewey.c
+++ b/pkgtools/pkg_install/files/lib/dewey.c
@@ -1,4 +1,9 @@
-/* $NetBSD: dewey.c,v 1.1 2005/11/05 13:20:09 wiz Exp $ */
+/* $NetBSD: dewey.c,v 1.2 2005/11/07 18:53:53 tv Exp $ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
/*
* FreeBSD install - a package for the installation and maintainance
@@ -20,12 +25,24 @@
*
*/
+#if HAVE_ASSERT_H
#include <assert.h>
+#endif
+#if HAVE_CTYPE_H
#include <ctype.h>
+#endif
+#if HAVE_ERR_H
#include <err.h>
+#endif
+#if HAVE_FNMATCH_H
#include <fnmatch.h>
+#endif
+#if HAVE_INTTYPES_H
#include <inttypes.h>
+#endif
+#if HAVE_STRING_H
#include <string.h>
+#endif
#include "defs.h"
#include "dewey.h"