X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcompat%2Fmman.h;h=0053e3071cf7dbcdeb8512eddd821a26827b042d;hb=44b756ef7c0a8da1e25d21f629f3a768d65a1e81;hp=3f03d4900d4f2b8c0d962240cd38001435067c3a;hpb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;p=babeltrace.git diff --git a/src/compat/mman.h b/src/compat/mman.h index 3f03d490..0053e307 100644 --- a/src/compat/mman.h +++ b/src/compat/mman.h @@ -10,6 +10,7 @@ #ifdef __MINGW32__ #include +#include "common/macros.h" #define PROT_NONE 0x0 #define PROT_READ 0x1 @@ -29,16 +30,16 @@ * Note that some platforms (e.g. Windows) do not allow read-only * mappings to exceed the file's size (even within a page). */ -void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd, +BT_EXTERN_C void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset, int log_level); -int bt_munmap(void *addr, size_t length); +BT_EXTERN_C int bt_munmap(void *addr, size_t length); /* * On Windows the memory mapping offset must be aligned to the memory * allocator allocation granularity and not the page size. */ -size_t bt_mmap_get_offset_align_size(int log_level); +BT_EXTERN_C size_t bt_mmap_get_offset_align_size(int log_level); #else /* __MINGW32__ */