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/lib Use config.h and add ap...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8185b05f9faf
branches: trunk
changeset: 502553:8185b05f9faf
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Nov 06 12:37:43 2005 +0000
description:
Use config.h and add appropriate #if HAVE_FOO_H.
diffstat:
pkgtools/pkg_install/files/lib/automatic.c | 22 ++++++++++++++++++++--
pkgtools/pkg_install/files/lib/var.c | 18 ++++++++++++++++--
2 files changed, 36 insertions(+), 4 deletions(-)
diffs (86 lines):
diff -r 3a0e85060be0 -r 8185b05f9faf pkgtools/pkg_install/files/lib/automatic.c
--- a/pkgtools/pkg_install/files/lib/automatic.c Sun Nov 06 12:36:56 2005 +0000
+++ b/pkgtools/pkg_install/files/lib/automatic.c Sun Nov 06 12:37:43 2005 +0000
@@ -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 -r 3a0e85060be0 -r 8185b05f9faf pkgtools/pkg_install/files/lib/var.c
--- a/pkgtools/pkg_install/files/lib/var.c Sun Nov 06 12:36:56 2005 +0000
+++ b/pkgtools/pkg_install/files/lib/var.c Sun Nov 06 12:37:43 2005 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index