You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2022/11/28 16:13:19 UTC

svn commit: r1905576 - in /spamassassin/trunk/spamc: configure configure.in

Author: gbechis
Date: Mon Nov 28 16:13:19 2022
New Revision: 1905576

URL: http://svn.apache.org/viewvc?rev=1905576&view=rev
Log:
include the appropriate headers to avoid spurious test failures
when "-Wimplicit-function-declaration" compiler option is used

Modified:
    spamassassin/trunk/spamc/configure
    spamassassin/trunk/spamc/configure.in

Modified: spamassassin/trunk/spamc/configure
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamc/configure?rev=1905576&r1=1905575&r2=1905576&view=diff
==============================================================================
--- spamassassin/trunk/spamc/configure (original)
+++ spamassassin/trunk/spamc/configure Mon Nov 28 16:13:19 2022
@@ -943,7 +943,7 @@ esac
     else
       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     fi
-    cd "$ac_popdir"
+    cd $ac_popdir
   done
 fi
 
@@ -3553,6 +3553,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+#include <stdio.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 int
@@ -4252,6 +4253,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+#include <stdio.h>
 #include <netdb.h>
 int
 main ()

Modified: spamassassin/trunk/spamc/configure.in
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamc/configure.in?rev=1905576&r1=1905575&r2=1905576&view=diff
==============================================================================
--- spamassassin/trunk/spamc/configure.in (original)
+++ spamassassin/trunk/spamc/configure.in Mon Nov 28 16:13:19 2022
@@ -47,7 +47,8 @@ dnl ------------------------------------
 
 AC_CACHE_CHECK([for SHUT_RD],
        shutrd, [
-                AC_TRY_COMPILE([#include <sys/types.h>
+                AC_TRY_COMPILE([#include <stdio.h>
+#include <sys/types.h>
 #include <sys/socket.h>],
                         [printf ("%d", SHUT_RD); return 0;],
                                         [shutrd=yes],
@@ -89,7 +90,8 @@ dnl ------------------------------------
 
 AC_CACHE_CHECK([for h_errno],
         herrno, [
-                AC_TRY_COMPILE([#include <netdb.h>],
+                AC_TRY_COMPILE([#include <stdio.h>
+#include <netdb.h>],
                         [printf ("%d", h_errno); return 0;],
                                         [herrno=yes],
                                         [herrno=no]),