aboutsummaryrefslogtreecommitdiff
path: root/utils/tcsh/patches/001-sysmalloc.patch
diff options
context:
space:
mode:
authorNuno Goncalves <nunojpg@gmail.com>2015-07-18 19:46:15 +0100
committerNuno Goncalves <nunojpg@gmail.com>2015-07-18 19:46:15 +0100
commit2bb6af5101c1133a1ce750df17709b98e20c3a03 (patch)
treef65cd2dfe07e1748e8baaeabff7a88e05685b5aa /utils/tcsh/patches/001-sysmalloc.patch
parente0ac4289074a123d333e7bbc1eeb993d3f037658 (diff)
tcsh: fix out of memory error with musl
Since __GLIBC__ is no longer defined under musl, we must hard patch it. 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.patch14
1 files changed, 14 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..99d0e3f77
--- /dev/null
+++ b/utils/tcsh/patches/001-sysmalloc.patch
@@ -0,0 +1,14 @@
+--- a/config_f.h
++++ b/config_f.h
+@@ -135,11 +135,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__)
+ # define SYSMALLOC
+-#else
+-# undef SYSMALLOC
+-#endif
+
+ /*
+ * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.