summaryrefslogtreecommitdiff
path: root/pkgtools/mtree
diff options
context:
space:
mode:
authorseb <seb>2011-07-27 15:31:00 +0000
committerseb <seb>2011-07-27 15:31:00 +0000
commit5d3893d9637e3b46e5fa8c1aace2ad0b486e1292 (patch)
tree04c7089651b3fa1128415dacce6832a9cb281329 /pkgtools/mtree
parent27d17030ec7386b4dbd60e1484fce886836be2e9 (diff)
downloadpkgsrc-5d3893d9637e3b46e5fa8c1aace2ad0b486e1292.tar.gz
Fix build on (RH)EL 5 and 6, and possibly others.
Don't assume something if HAVE_NBTOOL_CONFIG_H is not defined, in pkgsrc case we HAVE_CONFIG_H to sort things out.
Diffstat (limited to 'pkgtools/mtree')
-rw-r--r--pkgtools/mtree/files/extern.h4
-rw-r--r--pkgtools/mtree/files/stat_flags.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgtools/mtree/files/extern.h b/pkgtools/mtree/files/extern.h
index 3e3bb583fce..c93cbaa8cc1 100644
--- a/pkgtools/mtree/files/extern.h
+++ b/pkgtools/mtree/files/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.4 2010/03/21 16:30:17 joerg Exp $ */
+/* $NetBSD: extern.h,v 1.5 2011/07/27 15:31:00 seb Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -36,11 +36,13 @@
#endif
#include "mtree.h"
+#if 0
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#else
#define HAVE_STRUCT_STAT_ST_FLAGS 1
#endif
+#endif
#include <nbcompat.h>
#if HAVE_ERR_H
diff --git a/pkgtools/mtree/files/stat_flags.c b/pkgtools/mtree/files/stat_flags.c
index f036745f9c3..0ef284a4c74 100644
--- a/pkgtools/mtree/files/stat_flags.c
+++ b/pkgtools/mtree/files/stat_flags.c
@@ -1,4 +1,4 @@
-/* $NetBSD: stat_flags.c,v 1.4 2008/11/06 02:14:52 jschauma Exp $ */
+/* $NetBSD: stat_flags.c,v 1.5 2011/07/27 15:31:00 seb Exp $ */
/*-
* Copyright (c) 1993
@@ -32,11 +32,13 @@
#if HAVE_CONFIG_H
#include "config.h"
#endif
+#if 0
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#else
#define HAVE_STRUCT_STAT_ST_FLAGS 1
#endif
+#endif
#include <nbcompat.h>
#if HAVE_SYS_CDEFS_H
@@ -46,7 +48,7 @@
#if 0
static char sccsid[] = "@(#)stat_flags.c 8.2 (Berkeley) 7/28/94";
#else
-__RCSID("$NetBSD: stat_flags.c,v 1.4 2008/11/06 02:14:52 jschauma Exp $");
+__RCSID("$NetBSD: stat_flags.c,v 1.5 2011/07/27 15:31:00 seb Exp $");
#endif
#endif /* not lint */