]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Musl issues: Fix none/tests/pth_atfork1.c
authorAleksandar Rikalo <aleksandar.rikalo@rt-rk.com>
Thu, 23 Apr 2020 16:22:31 +0000 (16:22 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 23 Apr 2020 16:24:24 +0000 (16:24 +0000)
There is no error.h on some systems.

NEWS
none/tests/pth_atfork1.c

diff --git a/NEWS b/NEWS
index 6f082d6ac7d08210cc63b07571a2d8d4ae664ee1..4011e60c109dc49d645c18646f34712d20d7fc3f 100644 (file)
--- 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
index 34201ef96bcfe66fffac8555f30f6d10f05679a0..17a1d9bbf41b67106afb46db37b4f1879973cab7 100644 (file)
    Boston, MA 02111-1307, USA.  */
 
 #include <errno.h>
-#if !defined(__APPLE__) && !defined(__sun)
-# include <error.h>
-#endif
 #include <stdlib.h>
 #include <pthread.h>
 #include <unistd.h>
 #include <sys/wait.h>
 #include <stdio.h>
-
-#if defined(__APPLE__) || defined(__sun)
 #include <string.h>  /* 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
 {