Module: sip-router Branch: master Commit: b03a9c1bc72a348c633db94410a7f3e01c5849ab URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b03a9c1b...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Sep 30 14:02:47 2011 +0200
xmlrpc: redeclaration of v/snprintf() conditioned by OS type
---
modules/xmlrpc/xmlrpc.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c index 327df9f..31c0711 100644 --- a/modules/xmlrpc/xmlrpc.c +++ b/modules/xmlrpc/xmlrpc.c @@ -147,6 +147,13 @@
MODULE_VERSION
+#if defined (__OS_darwin) || defined (__OS_freebsd) +/* redeclaration of functions from stdio.h throws errors */ +#else +int snprintf(char *str, size_t size, const char *format, ...); +int vsnprintf(char *str, size_t size, const char *format, va_list ap); +#endif + static int process_xmlrpc(sip_msg_t* msg); static int dispatch_rpc(sip_msg_t* msg, char* s1, char* s2); static int xmlrpc_reply(sip_msg_t* msg, char* code, char* reason);