SPF: better buld compatibility with OpenBSD
[exim.git] / src / src / lookups / spf.c
index b32a73e6a9f549b6ce3a56cf9e48eda0a28d7b57..48d6ce3b5887d242d25212d68c4355db4d4e5c74 100644 (file)
@@ -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>