diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | src/qcommon/net_ip.c | 4 |
2 files changed, 4 insertions, 5 deletions
@@ -637,11 +637,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/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index 682f4689..d7dc8b5f 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -64,11 +64,11 @@ static qboolean winsockInitialized = qfalse; # 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> |