mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
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>
This commit is contained in:
14
utils/tcsh/patches/001-sysmalloc.patch
Normal file
14
utils/tcsh/patches/001-sysmalloc.patch
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user