diff options
author | Zeex <zeex@rocketmail.com> | 2020-11-02 03:32:00 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2020-11-02 03:33:20 +0600 |
commit | 846deef5a85c700cdd3ea10b51622ed5084feb6a (patch) | |
tree | 8461798efc148e133f1d6412a1c1970c887c9fea /subhook_unix.c | |
parent | 314603bc42120c0c40571eaaa9c8f022992c70a6 (diff) | |
download | subhook-846deef5a85c700cdd3ea10b51622ed5084feb6a.zip subhook-846deef5a85c700cdd3ea10b51622ed5084feb6a.tar.gz subhook-846deef5a85c700cdd3ea10b51622ed5084feb6a.tar.bz2 |
Fix undefined symbol error
Diffstat (limited to 'subhook_unix.c')
-rw-r--r-- | subhook_unix.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subhook_unix.c b/subhook_unix.c index 3bde083..48c6af2 100644 --- a/subhook_unix.c +++ b/subhook_unix.c @@ -43,7 +43,10 @@ void *subhook_alloc_code(size_t size) { return mmap(NULL, size, SUBHOOK_CODE_PROTECT_FLAGS, - MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, + #ifdef MAP_32BIT + MAP_32BIT | + #endif + MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); } |