aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-04-04 11:37:19 +0000
committerMartin Willi <martin@strongswan.org>2008-04-04 11:37:19 +0000
commit2429fb4958c9eb6da869f5668d12cf9caca465d0 (patch)
tree7ee40ff2df2c5a99d6e4339077c5b1d3151b2e84
parent67d147e8882e39b669dc0487df2081f26fcaea27 (diff)
downloadstrongswan-2429fb4958c9eb6da869f5668d12cf9caca465d0.tar.bz2
strongswan-2429fb4958c9eb6da869f5668d12cf9caca465d0.tar.xz
defining hook functions ourself as definition in uClibc and glibc differ, fixes #36
-rw-r--r--src/libstrongswan/printf_hook.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libstrongswan/printf_hook.h b/src/libstrongswan/printf_hook.h
index d9708c0f9..69b8b3507 100644
--- a/src/libstrongswan/printf_hook.h
+++ b/src/libstrongswan/printf_hook.h
@@ -37,14 +37,17 @@ typedef struct printf_hook_functions_t printf_hook_functions_t;
struct printf_hook_functions_t {
/**
- * Printf hook print function
+ * Printf hook print function. This is actually of type "printf_function",
+ * however glibc does it typedef to function, but uclibc to a pointer.
+ * So we redefine it here.
*/
- printf_function *print;
+ int (*print)(FILE *, const struct printf_info *info, const void *const *args);
/**
- * Printf hook arginfo function
+ * Printf hook arginfo function, which is actually of type
+ * "printf_arginfo_function".
*/
- printf_arginfo_function *arginfo;
+ int (*arginfo)(const struct printf_info *info, size_t n, int *argtypes);
};
/**