aboutsummaryrefslogblamecommitdiffstats
path: root/testing/opendmarc/netdb_defines.patch
blob: 0009f1d7998dfbff8ec93c21ab79c8f74f83d612 (plain) (tree)



















                                                                               
--- a/libopendmarc/opendmarc_internal.h	2015-02-23 20:31:51.000000000 +0000
+++ b/libopendmarc/opendmarc_internal.h	2018-06-27 13:59:30.237526809 +0000
@@ -115,6 +115,17 @@
 
 #define	DNS_MAX_RETRIES 6
 
+/*
+** Fix missing NETDB defines when using musl libc
+*/
+#if !defined(NETDB_INTERNAL)
+#       define NETDB_INTERNAL   (-1)
+#endif
+
+#if !defined(NETDB_SUCCESS)
+#       define NETDB_SUCCESS    (0)
+#endif
+
 /*****************************************************************************
 ** DMARC_POLICY_T -- The opaque context for the library.
 ** 	Memory needs to be allocated and freed.