aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dns.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-01-12 08:20:49 +0000
committerWerner Koch <[email protected]>2017-01-12 08:20:49 +0000
commit0fadff9cdde47e42f7e428bc903b3626c67ba9c0 (patch)
treef45d6f8407681bb7ceb2ddf01bea1b445763ac98 /dirmngr/dns.c
parentdirmngr: After a connection failure log a hint if Tor is not running. (diff)
downloadgnupg-0fadff9cdde47e42f7e428bc903b3626c67ba9c0.tar.gz
gnupg-0fadff9cdde47e42f7e428bc903b3626c67ba9c0.zip
libdns: Provide replacement for EPROTO.
* dirmngr/dns.c (EPROTO) ![EPROTO]: Define to EPROTONOSUPPORT. -- This is the same replacement we use in Libassuan (commit 8ab3b9273524bd344bdb90dd5d3bc8e5f53ead6e) to make it work on OpenBSD and may other BSD based OSes. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/dns.c')
-rw-r--r--dirmngr/dns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dirmngr/dns.c b/dirmngr/dns.c
index 4b61b72c2..b580e4031 100644
--- a/dirmngr/dns.c
+++ b/dirmngr/dns.c
@@ -288,6 +288,10 @@ int dns_v_api(void) {
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+#ifndef EPROTO
+# define EPROTO EPROTONOSUPPORT
+#endif
+
#if _WIN32
#define DNS_EINTR WSAEINTR