From 652226a3ce5ea2c63319afd77dafb67f3039684c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 25 Nov 2024 12:20:53 +0000 Subject: automatic import of cacti-spine --- cacti-spine-configure-c99.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cacti-spine-configure-c99.patch (limited to 'cacti-spine-configure-c99.patch') 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: + +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 ]], [[exit(NETSNMP_USE_OPENSSL != 1);]])],[ AC_MSG_RESULT(yes) ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[return NETSNMP_USE_OPENSSL != 1;]])],[ AC_MSG_RESULT(yes) + SNMP_SSL=yes + ],[AC_MSG_RESULT(no) + ]) -- cgit v1.2.3