summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorwiz <wiz>2005-11-06 12:37:43 +0000
committerwiz <wiz>2005-11-06 12:37:43 +0000
commite072e3465512bd89760590946fdc2144790ad8f4 (patch)
tree486d8520df7c3af7b8d2d4f419d45d8755451ce3 /pkgtools/pkg_install
parentd834be789f3c6bba2da4eebeaad8bf4d76734b3c (diff)
downloadpkgsrc-e072e3465512bd89760590946fdc2144790ad8f4.tar.gz
Use config.h and add appropriate #if HAVE_FOO_H.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/automatic.c22
-rw-r--r--pkgtools/pkg_install/files/lib/var.c18
2 files changed, 36 insertions, 4 deletions
diff --git a/pkgtools/pkg_install/files/lib/automatic.c b/pkgtools/pkg_install/files/lib/automatic.c
index 9cd04786205..1c39c68adb1 100644
--- a/pkgtools/pkg_install/files/lib/automatic.c
+++ b/pkgtools/pkg_install/files/lib/automatic.c
@@ -1,4 +1,4 @@
-/* $NetBSD: automatic.c,v 1.1 2005/11/05 13:20:09 wiz Exp $ */
+/* $NetBSD: automatic.c,v 1.2 2005/11/06 12:37:43 wiz Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -32,17 +32,35 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
+#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
+#endif
#ifndef lint
-__RCSID("$NetBSD: automatic.c,v 1.1 2005/11/05 13:20:09 wiz Exp $");
+__RCSID("$NetBSD: automatic.c,v 1.2 2005/11/06 12:37:43 wiz Exp $");
#endif
+#if HAVE_ERR_H
#include <err.h>
+#endif
+#if HAVE_ERRNO_H
#include <errno.h>
+#endif
+#if HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+#if HAVE_STRING_H
#include <string.h>
+#endif
+#if HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#if HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#include "lib.h"
Boolean
diff --git a/pkgtools/pkg_install/files/lib/var.c b/pkgtools/pkg_install/files/lib/var.c
index 825dbbe5447..863798e4bb4 100644
--- a/pkgtools/pkg_install/files/lib/var.c
+++ b/pkgtools/pkg_install/files/lib/var.c
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.1 2005/11/05 13:20:09 wiz Exp $ */
+/* $NetBSD: var.c,v 1.2 2005/11/06 12:37:43 wiz Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -32,15 +32,29 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
+#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
+#endif
#ifndef lint
-__RCSID("$NetBSD: var.c,v 1.1 2005/11/05 13:20:09 wiz Exp $");
+__RCSID("$NetBSD: var.c,v 1.2 2005/11/06 12:37:43 wiz Exp $");
#endif
+#if HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#if HAVE_ERR_H
#include <err.h>
+#endif
+#if HAVE_ERRNO_H
#include <errno.h>
+#endif
+#if HAVE_STDIO_H
#include <stdio.h>
+#endif
#include "lib.h"