pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bmake/files bmake: Limit malloc_options to FreeBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49f7964ae882
branches:  trunk
changeset: 441885:49f7964ae882
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Nov 12 16:01:36 2020 +0000

description:
bmake: Limit malloc_options to FreeBSD.

The only other OS I can find that supports malloc_options is OpenBSD, and that
does not support the "A" flag.  Besides, there are better ways to set the
flags instead of hardcoding them in a binary.

diffstat:

 devel/bmake/files/job.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r f3509b982886 -r 49f7964ae882 devel/bmake/files/job.c
--- a/devel/bmake/files/job.c   Thu Nov 12 14:41:49 2020 +0000
+++ b/devel/bmake/files/job.c   Thu Nov 12 16:01:36 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.20 2020/05/24 21:10:17 nia Exp $     */
+/*     $NetBSD: job.c,v 1.21 2020/11/12 16:01:36 jperkin 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.20 2020/05/24 21:10:17 nia Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.21 2020/11/12 16:01:36 jperkin 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.20 2020/05/24 21:10:17 nia Exp $");
+__RCSID("$NetBSD: job.c,v 1.21 2020/11/12 16:01:36 jperkin Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -370,10 +370,12 @@
 static void JobSigUnlock(sigset_t *);
 static void JobSigReset(void);
 
+#ifdef __FreeBSD__
 #if !defined(MALLOC_OPTIONS)
 # define MALLOC_OPTIONS "A"
 #endif
 const char *malloc_options= MALLOC_OPTIONS;
+#endif
 
 static unsigned
 nfds_per_job(void)



Home | Main Index | Thread Index | Old Index