You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by bi...@apache.org on 2023/07/28 15:49:34 UTC

svn commit: r1911328 - /spamassassin/trunk/spamd/spamd.raw

Author: billcole
Date: Fri Jul 28 15:49:33 2023
New Revision: 1911328

URL: http://svn.apache.org/viewvc?rev=1911328&view=rev
Log:
Bug 8150 fix: move require line earlier

Modified:
    spamassassin/trunk/spamd/spamd.raw

Modified: spamassassin/trunk/spamd/spamd.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?rev=1911328&r1=1911327&r2=1911328&view=diff
==============================================================================
--- spamassassin/trunk/spamd/spamd.raw (original)
+++ spamassassin/trunk/spamd/spamd.raw Fri Jul 28 15:49:33 2023
@@ -57,6 +57,7 @@ our ($have_getaddrinfo_in_core, $have_ge
 
 # don't force requirement on IO::Socket::IP or IO::Socket::INET6
 BEGIN {
+  require Socket;
   $have_getaddrinfo_in_core = eval {
     # The Socket module (1.94) bundled with Perl 5.14.* provides
     # new affordances for IPv6, including implementations of the
@@ -83,7 +84,6 @@ BEGIN {
     &NI_NUMERICHOST; &NI_NUMERICSERV; &NI_NAMEREQD; 1;
   };
 
-  require Socket;
   Socket->import(qw(:DEFAULT IPPROTO_TCP));
 
   &SOCK_STREAM; &IPPROTO_TCP; &SOMAXCONN; # enable inlining