From bd2b704c910b4d7214138e16c75494f07f21767a Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 6 Jun 2011 14:59:54 +0000 Subject: [PATCH] OpenBSD compile fixes, patch provided by Jonathan Gray (#4994) --- Makefile | 5 ++--- code/qcommon/net_ip.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ad7303dd..c6e365b7 100644 --- a/Makefile +++ b/Makefile @@ -648,11 +648,10 @@ else # ifeq freebsd ifeq ($(PLATFORM),openbsd) - #default to i386, no tests done on anything else - ARCH=i386 + ARCH=$(shell uname -m) BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ - -DUSE_ICON + -DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON CLIENT_CFLAGS = $(SDL_CFLAGS) SERVER_CFLAGS = diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index fe5c8da6..7889726b 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -63,11 +63,11 @@ static qboolean winsockInitialized = qfalse; # define _BSD_SOCKLEN_T_ # endif -# include +# include # include # include # include -# include +# include # include # include # include