Jan Engelhardt 2018-11-13 10:59:48 +00:00 committed by Git OBS Bridge
parent a156b6f52d
commit ce24cf2cf5
2 changed files with 1 additions and 24 deletions

View File

@ -1,22 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2018-11-13 00:49:28.201279291 +0100
References: https://sourceforge.net/p/gsoap2/bugs/1223/
There is no such thing as AI_DEFAULT.
---
gsoap/stdsoap2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: gsoap-2.8.71/gsoap/stdsoap2.c
===================================================================
--- gsoap-2.8.71.orig/gsoap/stdsoap2.cpp
+++ gsoap-2.8.71/gsoap/stdsoap2.cpp
@@ -6697,7 +6697,7 @@ soap_accept(struct soap *soap)
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = AI_DEFAULT | AI_NUMERICHOST | AI_NUMERICSERV;
+ hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV;
getnameinfo(&soap->peer.addr, n, soap->host, sizeof(soap->host), port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV);
soap->ip = 0;
soap->ip6[0] = 0;

View File

@ -30,7 +30,6 @@ Source2: sanitize_source.sh
Patch1: gsconfig.patch
Patch3: gsoap-automake1_13.diff
Patch4: gsoap-01-sharedlibs.diff
Patch5: ai_default.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@ -85,7 +84,7 @@ This subpackage contains the documentation for the gSOAP toolkit.
%prep
%setup -q
cmp gsoap/stdsoap2.cpp gsoap/stdsoap2.c
%patch -P 1 -P 3 -P 4 -P 5 -p1
%patch -P 1 -P 3 -P 4 -p1
ln -fs stdsoap2.cpp gsoap/stdsoap2.c
%build