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.
This commit is contained in:
Ralf Corsepius
2009-10-25 17:32:05 +00:00
parent 1a8936e335
commit b1ddc7218a

View File

@@ -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);