From 524ae69d527e2ce41f2e7dc3050b2fcc17264878 Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 5 Apr 2008 14:28:57 +0000 Subject: - include Winsock2.h for windows - add a __BSD__ define for all bsd platforms if it doesn't exist. git-svn-id: svn://svn.icculus.org/quake3/trunk@1292 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/net_ip.c | 2 +- code/qcommon/q_platform.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'code') diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index 0002a6a..41918e9 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "../qcommon/qcommon.h" #ifdef _WIN32 -// #include +#include #include #include diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index be57ef7..1152fdf 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -175,6 +175,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include +#ifndef __BSD__ + #define __BSD__ +#endif + #if defined(__FreeBSD__) #define OS_STRING "freebsd" #elif defined(__OpenBSD__) -- cgit v1.2.3