aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2/netdb_success.patch
blob: 0f87882ec0383b52192f701fb44b1d9cb5c5476b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- ./src/include/spf_dns.h.orig
+++ ./src/include/spf_dns.h
@@ -99,11 +99,13 @@
  */
 
 #if !defined(HAVE_NETDB_H) && !defined(_WIN32)
-#define NETDB_SUCCESS	0
 #define	HOST_NOT_FOUND 	1		/**< NXDOMAIN (authoritative answer)*/
 #define	TRY_AGAIN		2		/**< SERVFAIL (no authoritative answer)*/
 #define	NO_RECOVERY		3		/**< invalid/unimplmeneted query	*/
 #define	NO_DATA			4		/**< host found, but no RR of req type*/
+#endif
+#ifndef NETDB_SUCCESS
+#define NETDB_SUCCESS	0
 #endif
 typedef int SPF_dns_stat_t;