aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabberd/files
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2012-05-14 20:11:44 +0800
committermm <mm@FreeBSD.org>2012-05-14 20:11:44 +0800
commit916e6dc43b949dd5c84513f1f3c699d828188295 (patch)
treeab47373e4f5d19816937c9f2c23e65d105bbcc0d /net-im/jabberd/files
parentcc1d29ec4a55f98ce53d0fee66b1adff9ec49e08 (diff)
downloadfreebsd-ports-gnome-916e6dc43b949dd5c84513f1f3c699d828188295.tar.gz
freebsd-ports-gnome-916e6dc43b949dd5c84513f1f3c699d828188295.tar.zst
freebsd-ports-gnome-916e6dc43b949dd5c84513f1f3c699d828188295.zip
Fix build for WITHOUT_DEBUG
Patch from upstream: https://github.com/Jabberd2/jabberd2/commit/41884d9919 PR: ports/167865 Reported by: Guido Falsi <madpilot@FreeBSD.org>
Diffstat (limited to 'net-im/jabberd/files')
-rw-r--r--net-im/jabberd/files/patch-41884d991953
1 files changed, 53 insertions, 0 deletions
diff --git a/net-im/jabberd/files/patch-41884d9919 b/net-im/jabberd/files/patch-41884d9919
new file mode 100644
index 000000000000..dc3932eb0767
--- /dev/null
+++ b/net-im/jabberd/files/patch-41884d9919
@@ -0,0 +1,53 @@
+diff --git a/util/log.c b/util/log.c
+index edf3919..06835da 100644
+--- a/util/log.c
++++ util/log.c
+@@ -223,12 +223,12 @@ void set_debug_flag(int v)
+ debug_flag = v;
+ }
+
+-int set_debug_log_from_config(config_t c)
++void set_debug_log_from_config(config_t c)
+ {
+ return set_debug_file(config_get_one(c, "log.debug", 0));
+-};
++}
+
+-JABBERD2_API int set_debug_file(const char *filename)
++JABBERD2_API void set_debug_file(const char *filename)
+ {
+ // Close debug output file but not stderr
+ if (debug_log_target != 0 &&
+@@ -255,7 +255,7 @@ JABBERD2_API int set_debug_file(const char *filename)
+ // set stderr
+ debug_log_target = stderr;
+ }
+-};
++}
+
+ #else /* DEBUG */
+ void debug_log(const char *file, int line, const char *msgfmt, ...)
+@@ -263,4 +263,7 @@ void debug_log(const char *file, int line, const char *msgfmt, ...)
+
+ void set_debug_flag(int v)
+ { }
++
++void set_debug_log_from_config(config_t c)
++{ }
+ #endif
+diff --git a/util/util.h b/util/util.h
+index 7d3a9da..802e25c 100644
+--- a/util/util.h
++++ util/util.h
+@@ -414,9 +414,9 @@ JABBERD2_API int hex_to_raw(char *in, int inlen, char *out);
+ JABBERD2_API int get_debug_flag(void);
+ JABBERD2_API void set_debug_flag(int v);
+ JABBERD2_API void debug_log(const char *file, int line, const char *msgfmt, ...);
+-JABBERD2_API int set_debug_file(const char *filename);
++JABBERD2_API void set_debug_file(const char *filename);
+
+-JABBERD2_API int set_debug_log_from_config(config_t c);
++JABBERD2_API void set_debug_log_from_config(config_t c);
+
+ #define ZONE __FILE__,__LINE__
+ #define MAX_DEBUG 8192