Multithreaded locking for mmap().
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4654 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 093b8ff..7a38bfe 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -233,6 +233,8 @@
abi_ulong new_addr);
int target_msync(abi_ulong start, abi_ulong len, int flags);
extern unsigned long last_brk;
+void mmap_lock(void);
+void mmap_unlock(void);
/* user access */
@@ -423,4 +425,8 @@
#define unlock_user_struct(host_ptr, guest_addr, copy) \
unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0)
+#if defined(USE_NPTL)
+#include <pthread.h>
+#endif
+
#endif /* QEMU_H */