1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/opendmarc/netdb_defines.patch
Hidde van der Heide c339228a8d testing/opendmarc: new aport
http://www.trusteddomain.org/opendmarc/
A free open source implementation of the DMARC specification.

Committer notes:
* Added -dev subpackage.
* Added --build, --host, --with-installdir flags and needed update_config_*.
* Added BSD-3-Clause to the licenses.
2018-07-08 20:06:32 +02:00

20 lines
600 B
Diff

--- 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.