Date: Sat, 30 Nov 2013 11:08:27 +0000 (UTC) From: William Grzybowski <wg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r335283 - in head/games/jfk: . files Message-ID: <201311301108.rAUB8RVb005940@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wg Date: Sat Nov 30 11:08:26 2013 New Revision: 335283 URL: http://svnweb.freebsd.org/changeset/ports/335283 Log: games/jfk: fix build with clang PR: ports/184244 Submitted by: KATO Tsuguru <tkato432 yahoo.com> Added: head/games/jfk/files/patch-src__client__objects_c.cc (contents, props changed) head/games/jfk/files/patch-src__lib__network.cc (contents, props changed) Modified: head/games/jfk/Makefile Modified: head/games/jfk/Makefile ============================================================================== --- head/games/jfk/Makefile Sat Nov 30 11:04:51 2013 (r335282) +++ head/games/jfk/Makefile Sat Nov 30 11:08:26 2013 (r335283) @@ -8,7 +8,6 @@ CATEGORIES= games MASTER_SITES= http://hop.at/jfk/ LICENSE= GPLv2 # (or later) -LICENSE_FILE= ${WRKSRC}/COPYING MAINTAINER= ports@FreeBSD.org COMMENT= Multiplayer 2D shoot'em up game Added: head/games/jfk/files/patch-src__client__objects_c.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/jfk/files/patch-src__client__objects_c.cc Sat Nov 30 11:08:26 2013 (r335283) @@ -0,0 +1,10 @@ +--- src/client/objects_c.cc.orig ++++ src/client/objects_c.cc +@@ -21,6 +21,7 @@ + */ + + #include <cmath> ++#include <cstdlib> + #include <string> + #include "objects_c.h" + #include "level.h" Added: head/games/jfk/files/patch-src__lib__network.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/jfk/files/patch-src__lib__network.cc Sat Nov 30 11:08:26 2013 (r335283) @@ -0,0 +1,27 @@ +--- src/lib/network.cc.orig ++++ src/lib/network.cc +@@ -6,6 +6,7 @@ + #include <cassert> + #include <cerrno> + #include <csignal> ++#include <cstdlib> + #include <cstring> + #include <new> + #include <string> +@@ -289,7 +290,7 @@ + + set_socket_nonblocking(listenfd); + +- sa = (sockaddr*)std::malloc(MAXSOCKADDR); ++ sa = (sockaddr*)malloc(MAXSOCKADDR); + if (sa == NULL) + throw std::bad_alloc(); + } +@@ -370,7 +371,7 @@ + const size_t MIN_POLLFD = 10; + /* allocate more memory for the pollfd array */ + fd_alloc = std::max(MIN_POLLFD, 3 * fd_alloc / 2); +- pollfd* tmp = (pollfd*)std::realloc(fds, fd_alloc * sizeof *fds); ++ pollfd* tmp = (pollfd*)realloc(fds, fd_alloc * sizeof *fds); + if (tmp == NULL) + throw std::bad_alloc();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311301108.rAUB8RVb005940>