summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxenosys
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-25 17:32:05 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-25 17:32:05 +0000
commitb1ddc7218a5d7f0efdc6d1304ee0b2d25d525f29 (patch)
tree67f932c5c6aff14ba6e8a126ee16a095641178c9 /testsuites/psxtests/psxenosys
parent2009-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b1ddc7218a5d7f0efdc6d1304ee0b2d25d525f29.tar.bz2
2009-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxenosys/init.c: Include "pthread.h". Conditionally add local prototype for pthread_atfork() if pthread.h doesn't supply it.
Diffstat (limited to 'testsuites/psxtests/psxenosys')
-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);