summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-oe/recipes-shells/tcsh/tcsh/0001-Enable-system-malloc-on-all-linux.patch
blob: ff2f6a3b683cb899967a0c59ac8fd0fcd87e43fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 0553455813a1f717ef50cc911e4db73da3d23c32 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 22 Mar 2017 18:47:40 -0700
Subject: [PATCH 1/2] Enable system malloc on all linux

Dont trigger on being just android or glibc
internal malloc falls flat on musl based systems
as well. So switch to using system malloc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 config_f.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config_f.h b/config_f.h
index 6a632a5..0a66960 100644
--- a/config_f.h
+++ b/config_f.h
@@ -139,7 +139,7 @@
  *		This can be much slower and no memory statistics will be
  *		provided.
  */
-#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__) || defined (__ANDROID__)
+#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__linux__) || defined(__OpenBSD__) || defined(__APPLE__)
 # define SYSMALLOC
 #else
 # undef SYSMALLOC
-- 
2.12.1

OpenPOWER on IntegriCloud