@@ -16,6 +16,16 @@ libc_hidden_proto (__madvise)
/* This one is Linux specific. */
extern void *__mremap (void *__addr, size_t __old_len,
size_t __new_len, int __flags, ...);
+
+# if IS_IN (rtld)
+# ifndef __gnu_hurd__
+/* On Hurd, __mmap in ld.so will be preempted by the one in libc.so after
+ bootstrap. */
+extern __typeof (__mmap) __mmap attribute_hidden;
+# endif
+extern __typeof (__mprotect) __mprotect attribute_hidden;
+extern __typeof (__munmap) __munmap attribute_hidden;
+# endif
#endif
#endif