* Note that some platforms (e.g. Windows) do not allow read-only
* mappings to exceed the file's size (even within a page).
*/
-BT_EXTERN_C void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd,
+BT_EXTERN_C void *bt_mmap(size_t length, int prot, int flags, int fd,
off_t offset, int log_level);
BT_EXTERN_C int bt_munmap(void *addr, size_t length);
#include "common/common.h"
static inline
-void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd,
+void *bt_mmap(size_t length, int prot, int flags, int fd,
off_t offset, int log_level __attribute__((unused)))
{
- return (void *) mmap(addr, length, prot, flags, fd, offset);
+ return (void *) mmap(NULL, length, prot, flags, fd, offset);
}
static inline