tcsh/tcsh-6.19.00-024-use-sysmalloc.patch
David Kaspar [Dee'Kej] db9c1e5cec tcsh-6.19.00-024-use-sysmalloc.patch added
This will force tcsh to use system malloc instead of builtin malloc,
  and is related to BZ: #1303323

  > Detect __GLIBC__ so it uses sysmalloc from <features.h>
  > https://bugzilla.redhat.com/show_bug.cgi?id=1303323
2016-05-03 17:11:24 +02:00

29 lines
719 B
Diff

From b2c7dbcf2b32ad5ad6dec5575fb630180677555a Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Tue, 8 Mar 2016 12:42:06 +0000
Subject: [PATCH] Detect __GLIBC__ so it uses sysmalloc from <features.h>
https://bugzilla.redhat.com/show_bug.cgi?id=1303323
---
config_f.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/config_f.h b/config_f.h
index f6fec55..4a9fe3a 100644
--- a/config_f.h
+++ b/config_f.h
@@ -38,6 +38,10 @@
#ifndef _h_config_f
#define _h_config_f
+#ifdef HAVE_FEATURES_H
+#include <features.h> /* for __GLIBC__ */
+#endif
+
/*
* SHORT_STRINGS Use at least 16 bit characters instead of 8 bit chars
* This fixes up quoting problems and eases implementation
--
2.5.5