From b1ddc7218a5d7f0efdc6d1304ee0b2d25d525f29 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 25 Oct 2009 17:32:05 +0000 Subject: =?UTF-8?q?2009-10-25=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * psxenosys/init.c: Include "pthread.h". Conditionally add local prototype for pthread_atfork() if pthread.h doesn't supply it. --- testsuites/psxtests/psxenosys/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuites/psxtests/psxenosys') 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 #endif +#include #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); -- cgit v1.2.3