diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2013-01-18 20:06:45 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2013-01-18 20:06:45 +0000 |
| commit | 58aabf08b77d221489f10e274812ec60917c21a8 (patch) | |
| tree | b946f82269be87d83f086167c762c362e734c5bb /lib/interception/interception_linux.cc | |
| parent | 37dfff057418e02f8e5322da12684dd927e3d881 (diff) | |
Notes
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 |
