xref: /OK3568_Linux_fs/buildroot/package/ytree/0001-fix-musl.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fix musl build
2
3Fixes
4
5  match.c.text+0x9c): undefined reference to `re_comp'
6  match.c.text+0xca): undefined reference to `re_exec'
7
8by forcing to use the 'modern' regex methods implementation instead of
9the obsolete re_comp/re_exec ([1]) one?
10
11[1] http://man7.org/linux/man-pages/man3/re_comp.3.html
12
13Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
14
15diff -uNr ytree-1.99pl2.orig/match.c ytree-1.99pl2/match.c
16--- ytree-1.99pl2.orig/match.c	2019-09-29 12:37:57.000000000 +0200
17+++ ytree-1.99pl2/match.c	2019-10-01 19:46:56.193815327 +0200
18@@ -10,7 +10,7 @@
19 #include "ytree.h"
20
21 #if defined( sun ) || defined( linux ) || defined( __NeXT__ ) || defined( OSF1 ) ||  defined( __OpenBSD__ ) || defined(__NetBSD__) || defined( __FreeBSD__ ) || defined( __GNU__ )
22-#define HAS_REGEX
23+#define HAS_REGCOMP
24 #endif
25
26 #ifdef linux
27