diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-11-05 11:18:07 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-11-05 11:18:07 +0000 |
commit | 543d7d41ba3f40248c26ce357b3d388c5b6a3aba (patch) | |
tree | 6fe441f594447ac31a69ce7f5e936f4fba762c59 /games | |
parent | - Unbreak (diff) |
- Fix build with gcc 4.2
PR: 117732
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Approved by: portmgr (pav), maintainer
Notes
Notes:
svn path=/head/; revision=202517
Diffstat (limited to 'games')
-rw-r--r-- | games/mangband/Makefile | 8 | ||||
-rw-r--r-- | games/mangband/files/patch-server-netserver.c | 11 |
2 files changed, 12 insertions, 7 deletions
diff --git a/games/mangband/Makefile b/games/mangband/Makefile index 7f8edbd50de7..ffa64f38c0f7 100644 --- a/games/mangband/Makefile +++ b/games/mangband/Makefile @@ -36,10 +36,4 @@ do-install: ${CHOWN} -R root:games ${MALIB}/* ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${MALIB} -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/mangband/files/patch-server-netserver.c b/games/mangband/files/patch-server-netserver.c new file mode 100644 index 000000000000..2911ce88153d --- /dev/null +++ b/games/mangband/files/patch-server-netserver.c @@ -0,0 +1,11 @@ +--- server/netserver.c.orig 2001-01-02 04:02:10.000000000 +0000 ++++ server/netserver.c 2007-11-01 04:27:06.000000000 +0000 +@@ -98,7 +98,7 @@ + (*drain_receive[256])(int ind); + int login_in_progress; + static int num_logins, num_logouts; +-static long Id; ++long Id; + int NumPlayers; + + int MetaSocket = -1; |