tcsh: fix out of memory error with musl
authorNuno Goncalves <nunojpg@gmail.com>
Sat, 18 Jul 2015 18:46:15 +0000 (19:46 +0100)
committerNuno Goncalves <nunojpg@gmail.com>
Sat, 18 Jul 2015 18:46:15 +0000 (19:46 +0100)
Since __GLIBC__ is no longer defined under musl, we must hard patch it.

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
utils/tcsh/Makefile
utils/tcsh/patches/001-sysmalloc.patch [new file with mode: 0644]

index 8e2f7a2cf307b1fb905e4aa326cffe079d61f3af..52d4b510ebe707eea51311e3bb3924bd14cfd96e 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tcsh
 PKG_VERSION:=6.19.00
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= \
diff --git a/utils/tcsh/patches/001-sysmalloc.patch b/utils/tcsh/patches/001-sysmalloc.patch
new file mode 100644 (file)
index 0000000..99d0e3f
--- /dev/null
@@ -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.