Index: Makefile =================================================================== --- Makefile (revision 1997) +++ Makefile (working copy) @@ -644,11 +644,10 @@ 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 = Index: code/qcommon/net_ip.c =================================================================== --- code/qcommon/net_ip.c (revision 1997) +++ code/qcommon/net_ip.c (working copy) @@ -63,11 +63,11 @@ # define _BSD_SOCKLEN_T_ # endif -# include <arpa/inet.h> +# include <sys/socket.h> # include <errno.h> # include <netdb.h> # include <netinet/in.h> -# include <sys/socket.h> +# include <arpa/inet.h> # include <net/if.h> # include <sys/ioctl.h> # include <sys/types.h>