aboutsummaryrefslogtreecommitdiffstats
path: root/irc/kvirc/files/patch-src-kvilib-net-kvi_dns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'irc/kvirc/files/patch-src-kvilib-net-kvi_dns.cpp')
-rw-r--r--irc/kvirc/files/patch-src-kvilib-net-kvi_dns.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/irc/kvirc/files/patch-src-kvilib-net-kvi_dns.cpp b/irc/kvirc/files/patch-src-kvilib-net-kvi_dns.cpp
new file mode 100644
index 00000000000..7cce3daf10c
--- /dev/null
+++ b/irc/kvirc/files/patch-src-kvilib-net-kvi_dns.cpp
@@ -0,0 +1,25 @@
+--- src/kvilib/net/kvi_dns.cpp.orig Mon Jan 5 21:54:02 2004
++++ src/kvilib/net/kvi_dns.cpp Mon Jan 5 22:04:18 2004
+@@ -39,6 +39,12 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netdb.h>
++ #if __FreeBSD__
++ #include <osreldate.h>
++ #if __FreeBSD_version >= 500037
++ #define EAI_ADDRFAMILY 1
++ #endif
++ #endif
+ #endif
+
+
+@@ -101,7 +107,9 @@
+ #ifndef COMPILE_ON_WINDOWS
+ case EAI_ADDRFAMILY: return KviError_unsupportedAddressFamily; break;
+ #endif
++#if __FreeBSD_version <= 500037
+ case EAI_NODATA: return KviError_validNameButNoIpAddress; break;
++#endif
+ case EAI_FAIL: return KviError_unrecoverableNameserverError; break;
+ case EAI_AGAIN: return KviError_dnsTemporaneousFault; break;
+ // this should never happen