Make sure netinet/in.h and friends are included before SDL_net.h to
avoid redefining INADDR_ANY/NONE/BROADCAST in SDL_net.h. This allows it to build with -Wsystem-headers.
This commit is contained in:
parent
cc4e80feef
commit
d71efac8d6
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.29 2009/12/22 16:28:01 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.30 2010/07/21 16:21:54 landry Exp $
|
||||
|
||||
COMMENT= fantasy turn-based strategy game
|
||||
|
||||
DISTNAME= wesnoth-1.6.5
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
REVISION= 1
|
||||
|
||||
CATEGORIES= games x11
|
||||
|
||||
|
16
games/wesnoth/patches/patch-src_network_hpp
Normal file
16
games/wesnoth/patches/patch-src_network_hpp
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_network_hpp,v 1.1 2010/07/21 16:21:54 landry Exp $
|
||||
Make sure netinet/in.h is included before SDL_net.h to
|
||||
avoid redefining INADDR_ANY/NONE/BROADCAST in SDL header
|
||||
--- src/network.hpp.orig Sun Feb 22 02:27:50 2009
|
||||
+++ src/network.hpp Wed Jul 21 17:12:27 2010
|
||||
@@ -22,6 +22,10 @@
|
||||
|
||||
class config;
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
+
|
||||
#include "SDL_net.h"
|
||||
|
||||
#include <string>
|
Loading…
Reference in New Issue
Block a user