# HG changeset patch # User Tim Ringenbach # Date 1101262596 0 # Node ID b98f856e2e5e3d9917a7798b6fae4ae837b5db83 # Parent db39c909d467f9aa3fa50a0244043c8a561a871a [gaim-migrate @ 11398] Oops, this moves some stuff around so it compiles fine with binreloc disabled. committer: Tailor Script diff -r db39c909d467 -r b98f856e2e5e src/prefix.c --- a/src/prefix.c Wed Nov 24 01:05:05 2004 +0000 +++ b/src/prefix.c Wed Nov 24 02:16:36 2004 +0000 @@ -56,6 +56,10 @@ #endif /* __GNUC__ */ +static br_locate_fallback_func fallback_func = NULL; +static void *fallback_data = NULL; + + #ifdef ENABLE_BINRELOC #include #include @@ -63,25 +67,6 @@ #include -static br_locate_fallback_func fallback_func = NULL; -static void *fallback_data = NULL; -/** - * br_set_fallback_function: - * func: A function to call to find the binary. - * data: User data to pass to func. - * - * Sets a function to call to find the path to the binary, in - * case "/proc/self/maps" can't be opened. The function set should - * return a string that is safe to free with free(). - */ -void -br_set_locate_fallback_func (br_locate_fallback_func func, void *data) -{ - fallback_func = func; - fallback_data = data; -} - - /** * br_locate: * symbol: A symbol that belongs to the app/library you want to locate. @@ -465,6 +450,23 @@ } +/** + * br_set_fallback_function: + * func: A function to call to find the binary. + * data: User data to pass to func. + * + * Sets a function to call to find the path to the binary, in + * case "/proc/self/maps" can't be opened. The function set should + * return a string that is safe to free with free(). + */ +void +br_set_locate_fallback_func (br_locate_fallback_func func, void *data) +{ + fallback_func = func; + fallback_data = data; +} + + #ifdef __cplusplus } #endif /* __cplusplus */