aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opendmarc/netdb_defines.patch
diff options
context:
space:
mode:
authorHidde van der Heide <hvanderheide@nexuz.net>2018-06-27 15:15:21 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-07-08 20:06:32 +0200
commitc339228a8df78513a8b44cfbd1f533abad645402 (patch)
treea2ab5097c6a87f14566d83d27f5cb2f04b177e78 /testing/opendmarc/netdb_defines.patch
parent0295a58d1dd088f56e1db1f273633770407e6fa8 (diff)
downloadaports-c339228a8df78513a8b44cfbd1f533abad645402.tar.bz2
aports-c339228a8df78513a8b44cfbd1f533abad645402.tar.xz
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.
Diffstat (limited to 'testing/opendmarc/netdb_defines.patch')
-rw-r--r--testing/opendmarc/netdb_defines.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/opendmarc/netdb_defines.patch b/testing/opendmarc/netdb_defines.patch
new file mode 100644
index 0000000000..0009f1d799
--- /dev/null
+++ b/testing/opendmarc/netdb_defines.patch
@@ -0,0 +1,20 @@
+--- 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.