aboutsummaryrefslogtreecommitdiff
path: root/utils/tcsh/patches/001-sysmalloc.patch
diff options
context:
space:
mode:
authorNuno Goncalves <nunojpg@gmail.com>2017-10-26 14:40:52 +0200
committerNuno Goncalves <nunojpg@gmail.com>2017-10-26 14:40:52 +0200
commit4e82a56ccd5002527843e2400727500819783702 (patch)
tree5c8b6b16f8210612654fd8be512a8ee01d924e72 /utils/tcsh/patches/001-sysmalloc.patch
parentaacfbb244a4c8366785996ee225615faab277158 (diff)
tcsh: fix out of memory crash
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
Diffstat (limited to 'utils/tcsh/patches/001-sysmalloc.patch')
-rw-r--r--utils/tcsh/patches/001-sysmalloc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/tcsh/patches/001-sysmalloc.patch b/utils/tcsh/patches/001-sysmalloc.patch
new file mode 100644
index 000000000..b22c01898
--- /dev/null
+++ b/utils/tcsh/patches/001-sysmalloc.patch
@@ -0,0 +1,15 @@
+--- a/config_f.h
++++ b/config_f.h
+@@ -139,11 +139,8 @@
+ * 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__)
++
+ # define SYSMALLOC
+-#else
+-# undef SYSMALLOC
+-#endif
+
+ /*
+ * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.