[Pkg-gnupg-commit] [gnupg2] 65/116: libdns: Provide replacement for EPROTO.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Jan 24 04:40:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 0fadff9cdde47e42f7e428bc903b3626c67ba9c0
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Jan 12 09:20:49 2017 +0100

    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 <wk at gnupg.org>
---
 dirmngr/dns.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dirmngr/dns.c b/dirmngr/dns.c
index 4b61b72..b580e40 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list