1 From fb77fef4f866dac7bcc6d1ae025da60564869f84 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 10 Jun 2017 01:06:11 -0700
4 Subject: [PATCH 4/6] pth_atfork1.c: Define error() API for musl
6 Upstream-Status: Pending
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 none/tests/pth_atfork1.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
13 diff --git a/none/tests/pth_atfork1.c b/none/tests/pth_atfork1.c
14 index 34201ef..b7f5f2d 100644
15 --- a/none/tests/pth_atfork1.c
16 +++ b/none/tests/pth_atfork1.c
18 Boston, MA 02111-1307, USA. */
21 -#if !defined(__APPLE__) && !defined(__sun)
22 +#if !defined(__APPLE__) && !defined(__sun) && defined(__GLIBC__)
30 -#if defined(__APPLE__) || defined(__sun)
31 +#if defined(__APPLE__) || defined(__sun) || (defined(__linux__) && !defined(__GLIBC__))
32 #include <string.h> /* strerror */
33 static void error (int status, int errnum, char* msg)