diff options
| author | mogery <mo.geryy@gmail.com> | 2021-10-13 15:09:48 +0200 |
|---|---|---|
| committer | mogery <mo.geryy@gmail.com> | 2021-10-13 15:09:48 +0200 |
| commit | bcb0bdea77207f30a988d9f0c3ec5841844efe55 (patch) | |
| tree | 41bc8432bab441a758865c268122fdce73895e8f /src/tools | |
| parent | 4ca58d1f994900d2025258cadf19dd633c8a7c09 (diff) | |
| download | box64-bcb0bdea77207f30a988d9f0c3ec5841844efe55.tar.gz box64-bcb0bdea77207f30a988d9f0c3ec5841844efe55.zip | |
Declare my_mmap and my_munmap to avoid warning
This adds a declaration of my_mmap and my_munmap to src/tools/bridge.c in order to avoid a -Wimplicit-function-declaration warning when compiling. This should probably be moved to a header file in the future.
Diffstat (limited to 'src/tools')
| -rwxr-xr-x | src/tools/bridge.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/bridge.c b/src/tools/bridge.c index 4ee34824..2574ddbd 100755 --- a/src/tools/bridge.c +++ b/src/tools/bridge.c @@ -35,6 +35,10 @@ typedef struct bridge_s { kh_bridgemap_t *bridgemap; } bridge_t; +// from src/wrapped/wrappedlibc.c +void* my_mmap(x64emu_t* emu, void* addr, unsigned long length, int prot, int flags, int fd, int64_t offset); +int my_munmap(x64emu_t* emu, void* addr, unsigned long length); + brick_t* NewBrick() { brick_t* ret = (brick_t*)calloc(1, sizeof(brick_t)); |