[exim-cvs] SPF: better buld compatibility with OpenBSD

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] SPF: better buld compatibility with OpenBSD
Gitweb: https://git.exim.org/exim.git/commitdiff/bda76da8a9357f4fc525b5f8b925fae262c28010
Commit:     bda76da8a9357f4fc525b5f8b925fae262c28010
Parent:     f97ca6d137d5ea861340d32686b4b67b9e2029a1
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Apr 4 14:33:28 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu Apr 4 14:33:28 2019 +0100


    SPF: better buld compatibility with OpenBSD
---
 src/src/lookups/spf.c | 4 ++--
 src/src/spf.h         | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/src/lookups/spf.c b/src/src/lookups/spf.c
index b32a73e..48d6ce3 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 <spf2/spf.h>
#include <spf2/spf_dns_resolv.h>
diff --git a/src/src/spf.h b/src/src/spf.h
index 23ad325..a0779f8 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 <spf2/spf.h>