From: Jeremy Harris Date: Thu, 4 Apr 2019 13:33:28 +0000 (+0100) Subject: SPF: better buld compatibility with OpenBSD X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/6c2054f65ae6beb2a38c6188c0807417adbb3880?ds=inline;hp=f627fcf379d9453326672016168e2e73f6c42916 SPF: better buld compatibility with OpenBSD (cherry picked from commit bda76da8a9357f4fc525b5f8b925fae262c28010) (cherry picked from commit 804219086fe9afbc1429c309e339524aaaabcec1) (cherry picked from commit c26e27d5b81ed5640c00ee87f1d4287fb066dc12) --- diff --git a/src/src/lookups/spf.c b/src/src/lookups/spf.c index b32a73e6a..48d6ce3b5 100644 --- a/src/src/lookups/spf.c +++ b/src/src/lookups/spf.c @@ -25,8 +25,8 @@ static void dummy(int x) { dummy2(x-1); } #else #include "lf_functions.h" -#ifndef HAVE_NS_TYPE -#define HAVE_NS_TYPE +#if !defined(HAVE_NS_TYPE) && defined(NS_INADDRSZ) +# define HAVE_NS_TYPE #endif #include #include diff --git a/src/src/spf.h b/src/src/spf.h index 23ad325f1..a0779f87c 100644 --- a/src/src/spf.h +++ b/src/src/spf.h @@ -11,7 +11,7 @@ #ifdef SUPPORT_SPF /* Yes, we do have ns_type. spf.h redefines it if we don't set this. Doh */ -#ifndef HAVE_NS_TYPE +#if !defined(HAVE_NS_TYPE) && defined(NS_INADDRSZ) # define HAVE_NS_TYPE #endif #include