0001-fix-musl.patch 829 B

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