summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2004-12-29 12:28:55 +0000
committerPeter Pentchev <roam@FreeBSD.org>2004-12-29 12:28:55 +0000
commit08b6b866be50491a59fd326818c3e0614c5eecf5 (patch)
tree1acc6f4c983b2af80c51dd46bcc83bcd0d79a699 /security
parentUpdate to 2004.12.29. (diff)
Fix the build on FreeBSD versions around 5.2 when EAI_NODATA was
temporarily aliased to EAI_NONAME. No PORTREVISION bump, since this is a no-op on earlier and later versions, and it didn't build at all until now on the affected versions. Reported by: Bretislav Kubesa <bretislav.kubesa@centrum.cz>
Notes
Notes: svn path=/head/; revision=125429
Diffstat (limited to 'security')
-rw-r--r--security/stunnel/files/patch-src::network.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/security/stunnel/files/patch-src::network.c b/security/stunnel/files/patch-src::network.c
index eac8748a1206..799222470d3d 100644
--- a/security/stunnel/files/patch-src::network.c
+++ b/security/stunnel/files/patch-src::network.c
@@ -1,5 +1,5 @@
---- src/network.c.orig Mon Dec 27 15:30:04 2004
-+++ src/network.c Mon Dec 27 15:30:07 2004
+--- src/network.c.orig Thu Oct 14 18:03:49 2004
++++ src/network.c Wed Dec 29 14:16:06 2004
@@ -125,7 +125,7 @@
int retval;
@@ -9,18 +9,20 @@
/* no timeout -> main loop */
if(timeout<0 && retval>0 && s_poll_canread(fds, signal_pipe[0]))
signal_pipe_empty();
-@@ -416,8 +416,10 @@
+@@ -416,8 +416,12 @@
return "Temporary failure in name resolution (EAI_AGAIN)";
case EAI_FAIL:
return "Non-recoverable failure in name resolution (EAI_FAIL)";
+#ifdef EAI_NODATA
++#if EAI_NODATA != EAI_NONAME
case EAI_NODATA:
return "No address associated with nodename (EAI_NODATA)";
+#endif
++#endif
case EAI_FAMILY:
return "ai_family not supported (EAI_FAMILY)";
case EAI_SOCKTYPE:
-@@ -562,10 +564,13 @@
+@@ -562,10 +566,13 @@
/* getnameinfo() version */
char *s_ntop(char *text, SOCKADDR_UNION *addr) {
char host[20], port[6];