From e54d00812342114a8a3acf5632537684407be007 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 26 May 2018 20:18:08 +0200 Subject: [PATCH] libcprops: fix musl --- srcpkgs/libcprops/patches/musl.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/libcprops/patches/musl.patch diff --git a/srcpkgs/libcprops/patches/musl.patch b/srcpkgs/libcprops/patches/musl.patch new file mode 100644 index 00000000000..0ff6e0fb205 --- /dev/null +++ b/srcpkgs/libcprops/patches/musl.patch @@ -0,0 +1,20 @@ +--- util.c.orig 2012-01-13 23:25:58.000000000 +0100 ++++ util.c 2018-05-26 20:14:12.290726591 +0200 +@@ -386,7 +386,7 @@ + msg = "Invalid back reference to a subexpression."; + break; + +-#ifdef linux ++#ifdef __GLIBC__ + case REG_EEND: + msg = "Non specific error."; + break; +@@ -400,7 +400,7 @@ + msg = "Invalid use of pattern operators such as group or list."; + break; + +-#ifdef linux ++#ifdef __GLIBC__ + case REG_ESIZE: + msg = "Compiled regular expression requires a pattern buffer larger than 64Kb."; + break;