talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit e1747c214b3e4b0549c2b0f28c70cddcdb54ad27
parent b6a157f746a0d8a4e23127d7e048f600d1009a01
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri,  6 Sep 2019 14:18:19 +0200

Fix bug 4248 “Suport C99 compilers in m4/spamassassin.m4”

Thanks Florian Weimer for the patch.

Diffstat:
Mm4/spamassassin.m4 | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/m4/spamassassin.m4 b/m4/spamassassin.m4 @@ -13,6 +13,7 @@ AC_CHECK_HEADERS(time.h sysexits.h sys/socket.h netdb.h netinet/in.h) AC_CACHE_CHECK([for SHUT_RD], spamassassin_cv_has_shutrd, [ AC_TRY_COMPILE([#include <sys/types.h> +#include <stdio.h> #include <sys/socket.h>], [printf ("%d", SHUT_RD); return 0;], [spamassassin_cv_has_shutrd=yes], @@ -30,7 +31,9 @@ dnl ---------------------------------------------------------------------- AC_CACHE_CHECK([for h_errno], spamassassin_cv_has_herrno, [ - AC_TRY_COMPILE([#include <netdb.h>], + AC_TRY_COMPILE([#include <netdb.h> +#include <stdio.h> +], [printf ("%d", h_errno); return 0;], [spamassassin_cv_has_herrno=yes], [spamassassin_cv_has_herrno=no]),