OpenBSD compile fixes, patch provided by Jonathan Gray (#4994)

This commit is contained in:
Thilo Schulz 2011-06-06 14:59:54 +00:00
parent e676b41c8f
commit bd2b704c91
2 changed files with 4 additions and 5 deletions

View file

@ -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 =

View file

@ -63,11 +63,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>