mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
tcsh: fix musl compatibility
Avoid using `union wait` under musl as it does not provide this definition. Implement solution suggested by http://www.openwall.com/lists/musl/2013/06/21/4 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/sh.proc.c
|
||||
+++ b/sh.proc.c
|
||||
@@ -48,7 +48,7 @@ RCSID("$tcsh: sh.proc.c,v 3.127 2015/02/
|
||||
#endif /* aiws */
|
||||
|
||||
#if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
|
||||
-# if !defined(__ANDROID__)
|
||||
+# if !(defined(__ANDROID__) || (defined(__linux__) && !defined(__GLIBC__)))
|
||||
# define BSDWAIT
|
||||
# endif
|
||||
#endif /* _BSD || (IRIS4D && __STDC__) || __lucid || glibc */
|
||||
Reference in New Issue
Block a user