diff --git a/tcsh-6.19.00-024-use-sysmalloc.patch b/tcsh-6.19.00-024-use-sysmalloc.patch new file mode 100644 index 0000000..7b24357 --- /dev/null +++ b/tcsh-6.19.00-024-use-sysmalloc.patch @@ -0,0 +1,28 @@ +From b2c7dbcf2b32ad5ad6dec5575fb630180677555a Mon Sep 17 00:00:00 2001 +From: christos +Date: Tue, 8 Mar 2016 12:42:06 +0000 +Subject: [PATCH] Detect __GLIBC__ so it uses sysmalloc from + 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 /* 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 + diff --git a/tcsh.spec b/tcsh.spec index d33a02e..28be5e0 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -52,6 +52,7 @@ Patch020: tcsh-6.19.00-020-make-heredoc-interruptible-again.patch Patch021: tcsh-6.19.00-021-remove-extra-semicolon.patch Patch022: tcsh-6.19.00-022-fix-source-command-memory-leak.patch Patch023: tcsh-6.19.00-023-fix-debugging-code.patch +Patch024: tcsh-6.19.00-024-use-sysmalloc.patch # Downstream patches -- these should be always included when doing rebase: @@ -196,6 +197,7 @@ fi tcsh-6.19.00-021-remove-extra-semicolon.patch tcsh-6.19.00-022-fix-source-command-memory-leak.patch tcsh-6.19.00-023-fix-debugging-code.patch + tcsh-6.19.00-024-use-sysmalloc.patch * Thu Apr 21 2016 David Kaspar [Dee'Kej] - 6.19.00-6 - Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream