summaryrefslogtreecommitdiff
path: root/cacti-spine-configure-c99.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-25 12:20:53 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-25 12:20:53 +0000
commit652226a3ce5ea2c63319afd77dafb67f3039684c (patch)
treeda6985bc0eece1c2b9faa5f316495efbfec02b42 /cacti-spine-configure-c99.patch
parente6372836f1b0edf01b0ee531b4e2c2d133f49f55 (diff)
automatic import of cacti-spine
Diffstat (limited to 'cacti-spine-configure-c99.patch')
-rw-r--r--cacti-spine-configure-c99.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/cacti-spine-configure-c99.patch b/cacti-spine-configure-c99.patch
new file mode 100644
index 0000000..d4080f0
--- /dev/null
+++ b/cacti-spine-configure-c99.patch
@@ -0,0 +1,19 @@
+Avoid implicit declaration of the exit function, to increase
+compatibility with future compilers which are likely to reject
+implicit function declarations by default.
+
+Submitted upstream: <https://github.com/Cacti/spine/pull/290>
+
+diff --git a/configure.ac b/configure.ac
+index d2d0303684fd36dc..7ee8c427dff87286 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -359,7 +359,7 @@ fi
+
+ # Net-SNMP includes v3 support and insists on crypto unless compiled --without-openssl
+ AC_MSG_CHECKING([if Net-SNMP needs crypto support])
+-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <net-snmp-config.h>]], [[exit(NETSNMP_USE_OPENSSL != 1);]])],[ AC_MSG_RESULT(yes)
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <net-snmp-config.h>]], [[return NETSNMP_USE_OPENSSL != 1;]])],[ AC_MSG_RESULT(yes)
+ SNMP_SSL=yes
+ ],[AC_MSG_RESULT(no)
+ ])