diff options
Diffstat (limited to 'lib/interception/interception_linux.cc')
| -rw-r--r-- | lib/interception/interception_linux.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/interception/interception_linux.cc b/lib/interception/interception_linux.cc index 37e593323d222..009098fbd6579 100644 --- a/lib/interception/interception_linux.cc +++ b/lib/interception/interception_linux.cc @@ -13,14 +13,15 @@ //===----------------------------------------------------------------------===// #ifdef __linux__ +#include "interception.h" #include <stddef.h> // for NULL #include <dlfcn.h> // for dlsym namespace __interception { -bool GetRealFunctionAddress(const char *func_name, void **func_addr, - void *real, void *wrapper) { - *func_addr = dlsym(RTLD_NEXT, func_name); +bool GetRealFunctionAddress(const char *func_name, uptr *func_addr, + uptr real, uptr wrapper) { + *func_addr = (uptr)dlsym(RTLD_NEXT, func_name); return real == wrapper; } } // namespace __interception |
