summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2018-09-10 10:16:58 +0000
committerschmonz <schmonz@pkgsrc.org>2018-09-10 10:16:58 +0000
commit5e39ebeb2e224eab967a00d327623eac9394fbf9 (patch)
treec0e04eecb055ac983f9f3698add48ef32ca8a74d /devel
parentef46b45e7b463ff07d338c67ccc9d7d0f76bf0ef (diff)
downloadpkgsrc-5e39ebeb2e224eab967a00d327623eac9394fbf9.tar.gz
Set default malloc_options iff NetBSD. Other platforms that don't
support the same options may make noise about that, such as OpenBSD. Suggested by joerg@.
Diffstat (limited to 'devel')
-rw-r--r--devel/bmake/files/job.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/bmake/files/job.c b/devel/bmake/files/job.c
index 2d6ccd36bc0..fdf9f6b48a1 100644
--- a/devel/bmake/files/job.c
+++ b/devel/bmake/files/job.c
@@ -1,4 +1,4 @@
-/* $NetBSD: job.c,v 1.16 2015/05/19 22:01:19 joerg Exp $ */
+/* $NetBSD: job.c,v 1.17 2018/09/10 10:16:58 schmonz Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.16 2015/05/19 22:01:19 joerg Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.17 2018/09/10 10:16:58 schmonz Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: job.c,v 1.16 2015/05/19 22:01:19 joerg Exp $");
+__RCSID("$NetBSD: job.c,v 1.17 2018/09/10 10:16:58 schmonz Exp $");
#endif
#endif /* not lint */
#endif
@@ -374,7 +374,9 @@ static void JobSigLock(sigset_t *);
static void JobSigUnlock(sigset_t *);
static void JobSigReset(void);
+#if defined(__NetBSD__)
const char *malloc_options="A";
+#endif
static void
job_table_dump(const char *where)