changeset 10257:b98f856e2e5e

[gaim-migrate @ 11398] Oops, this moves some stuff around so it compiles fine with binreloc disabled. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 24 Nov 2004 02:16:36 +0000
parents db39c909d467
children 357d4fa1bfbe
files src/prefix.c
diffstat 1 files changed, 21 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- 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 <sys/types.h>
 #include <sys/stat.h>
@@ -63,25 +67,6 @@
 #include <unistd.h>
 
 
-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 */