From: Aleksandar Rikalo Date: Thu, 23 Apr 2020 16:22:31 +0000 (+0000) Subject: Musl issues: Fix none/tests/pth_atfork1.c X-Git-Tag: VALGRIND_3_16_0~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=702b1fe56f6dd61d0003457728702248f46c6dcc;p=thirdparty%2Fvalgrind.git Musl issues: Fix none/tests/pth_atfork1.c There is no error.h on some systems. --- diff --git a/NEWS b/NEWS index 6f082d6ac7..4011e60c10 100644 --- a/NEWS +++ b/NEWS @@ -81,6 +81,7 @@ To see details of a given bug, visit where XXXXXX is the bug number as listed below. 385386 Assertion failed "szB >= CACHE_ENTRY_SIZE" at m_debuginfo/image.c:517 +400162 Patch: Guard against __GLIBC_PREREQ for musl libc 400593 In Coregrind, use statx for some internal syscalls if [f]stat[64] fail 400872 Add nanoMIPS support to Valgrind 403212 drd/tests/trylock hangs on FreeBSD diff --git a/none/tests/pth_atfork1.c b/none/tests/pth_atfork1.c index 34201ef96b..17a1d9bbf4 100644 --- a/none/tests/pth_atfork1.c +++ b/none/tests/pth_atfork1.c @@ -18,17 +18,13 @@ Boston, MA 02111-1307, USA. */ #include -#if !defined(__APPLE__) && !defined(__sun) -# include -#endif #include #include #include #include #include - -#if defined(__APPLE__) || defined(__sun) #include /* strerror */ + static void error (int status, int errnum, char* msg) { fprintf(stderr, "%s%s%s\n", @@ -38,7 +34,6 @@ static void error (int status, int errnum, char* msg) if (errnum) exit(errnum); } -#endif enum {