diff options
author | wiz <wiz@pkgsrc.org> | 2005-11-06 12:37:43 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-11-06 12:37:43 +0000 |
commit | 13950de79936574f67d81bcce7ca21313bf3799a (patch) | |
tree | 486d8520df7c3af7b8d2d4f419d45d8755451ce3 | |
parent | 8c0767b82d762484ab001e37becee3a2ce44bbd2 (diff) | |
download | pkgsrc-13950de79936574f67d81bcce7ca21313bf3799a.tar.gz |
Use config.h and add appropriate #if HAVE_FOO_H.
-rw-r--r-- | pkgtools/pkg_install/files/lib/automatic.c | 22 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/lib/var.c | 18 |
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" |