aboutsummaryrefslogtreecommitdiff
path: root/network/aiccu/06_syslog_openlog.patch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-12-22 10:36:55 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit4af65c01a9c745f50b38d076a213030bc6127df2 (patch)
treef91227695c3d43232af097fa513e56bfdaaed88c /network/aiccu/06_syslog_openlog.patch
parentdc1a15950a05f4c97369be70a9887bb48da291d5 (diff)
network/aiccu: Patched to build with gnutls-3.4.
Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/aiccu/06_syslog_openlog.patch')
-rw-r--r--network/aiccu/06_syslog_openlog.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/network/aiccu/06_syslog_openlog.patch b/network/aiccu/06_syslog_openlog.patch
new file mode 100644
index 000000000000..a3d1882d8d32
--- /dev/null
+++ b/network/aiccu/06_syslog_openlog.patch
@@ -0,0 +1,20 @@
+commit 0f7db943bef0488644dce11c2ba2d19c180d8650
+Author: Norman Rasmussen <norman@rasmussen.co.za>
+Date: Sun Jan 10 21:43:44 2010 +0000
+
+ Initialize syslog so that we log with our PID as DAEMON.
+
+diff --git a/common/aiccu.c b/common/aiccu.c
+index 9abb334..75aadc8 100755
+--- a/common/aiccu.c
++++ b/common/aiccu.c
+@@ -58,6 +58,9 @@ bool aiccu_InitConfig()
+ int ret;
+ #define CAFILE "ca.pem"
+ #endif
++#ifndef _WIN32
++ openlog(NULL, LOG_PID, LOG_DAEMON);
++#endif
+ /* Allocate & Initialize */
+ g_aiccu = (struct AICCU_conf *)malloc(sizeof(*g_aiccu));
+ if (!g_aiccu) return false;