There is no error.h on some systems.
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
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",
if (errnum)
exit(errnum);
}
-#endif
enum
{