summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/psxtests/psxenosys/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxenosys/init.c b/testsuites/psxtests/psxenosys/init.c
index e0ac089240..55dfbb77b6 100644
--- a/testsuites/psxtests/psxenosys/init.c
+++ b/testsuites/psxtests/psxenosys/init.c
@@ -15,6 +15,7 @@
/* POSIX mandates mprotect in sys/mman.h, but newlib doesn't have this */
#include <sys/mman.h>
#endif
+#include <pthread.h>
#define CONFIGURE_INIT
#include "system.h"
@@ -29,6 +30,9 @@
#if !HAVE_DECL_MPROTECT
extern int mprotect(const void *addr, size_t len, int prot);
#endif
+#if !HAVE_DECL_PTHREAD_ATFORK
+extern int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
+#endif
void check_enosys(int status);