From 188d89108bfbe806864784f3e17016dd84847dc1 Mon Sep 17 00:00:00 2001 From: crs Date: Sat, 25 Jan 2003 13:34:17 +0000 Subject: [PATCH] Added missing entry in a socket family table. This was a serious bug and should've failed on all platforms but just happened to work on linux and windows. --- lib/arch/CArchNetworkBSD.cpp | 1 + lib/arch/CArchNetworkWinsock.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/arch/CArchNetworkBSD.cpp b/lib/arch/CArchNetworkBSD.cpp index c83ad827..9b6eec6d 100644 --- a/lib/arch/CArchNetworkBSD.cpp +++ b/lib/arch/CArchNetworkBSD.cpp @@ -42,6 +42,7 @@ #endif static const int s_family[] = { + PF_UNSPEC, PF_INET }; static const int s_type[] = { diff --git a/lib/arch/CArchNetworkWinsock.cpp b/lib/arch/CArchNetworkWinsock.cpp index 1c10fb57..09b507ae 100644 --- a/lib/arch/CArchNetworkWinsock.cpp +++ b/lib/arch/CArchNetworkWinsock.cpp @@ -18,6 +18,7 @@ #include "XArchWindows.h" static const int s_family[] = { + PF_UNSPEC, PF_INET }; static const int s_type[] = {