Skip to content

Commit

Permalink
- include Winsock2.h for windows
Browse files Browse the repository at this point in the history
- add a __BSD__ define for all bsd platforms if it doesn't exist.
  • Loading branch information
Thilo Schulz committed Apr 5, 2008
1 parent 7b80773 commit 70cd2cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/qcommon/net_ip.c
Expand Up @@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/qcommon.h"

#ifdef _WIN32
// #include <winsock.h>
#include <Winsock2.h>
#include <Ws2tcpip.h>
#include <Wspiapi.h>

Expand Down
4 changes: 4 additions & 0 deletions code/qcommon/q_platform.h
Expand Up @@ -175,6 +175,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <sys/types.h>
#include <machine/endian.h>

#ifndef __BSD__
#define __BSD__
#endif

#if defined(__FreeBSD__)
#define OS_STRING "freebsd"
#elif defined(__OpenBSD__)
Expand Down

0 comments on commit 70cd2cc

Please sign in to comment.