Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2016-03-14 16:22:52 +0300
committerAndris Mednis <Andris.Mednis@zabbix.com>2016-03-14 16:22:52 +0300
commit04f5e030c788dc3a4373f55dc7fc3a22bffbfdd9 (patch)
treea78b009d9bc4d6ac9267c674e6d8c8d0648d16a1 /include/zbxnix.h
parentca8c305de510edf2beb34e92a39b3c372dbfd991 (diff)
...G...PS. [ZBX-10086] restored old behaviour - do not disable core dump if compiled without encryption support
Disabling of core dump was added in Zabbix 3.0 as part of encryption support (ZBXNEXT-1263). However, it was added regardless of encryption support. With this change the core dump is disabled only if compiled with encryption support.
Diffstat (limited to 'include/zbxnix.h')
-rw-r--r--include/zbxnix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zbxnix.h b/include/zbxnix.h
index 52c4238655e..3d2b3c8bfde 100644
--- a/include/zbxnix.h
+++ b/include/zbxnix.h
@@ -20,6 +20,8 @@
#ifndef ZABBIX_ZBXNIX_H
#define ZABBIX_ZBXNIX_H
-int zbx_coredump_disable(void);
+#if defined(HAVE_POLARSSL) || defined(HAVE_GNUTLS) || defined(HAVE_OPENSSL)
+int zbx_coredump_disable(void);
+#endif
#endif /* ZABBIX_ZBXNIX_H */