View | Details | Raw Unified | Return to bug 184244
Collapse All | Expand All

(-)games/jfk/Makefile (-1 lines)
Lines 8-14 Link Here
8
MASTER_SITES=	http://hop.at/jfk/
8
MASTER_SITES=	http://hop.at/jfk/
9
9
10
LICENSE=	GPLv2 # (or later)
10
LICENSE=	GPLv2 # (or later)
11
LICENSE_FILE=	${WRKSRC}/COPYING
12
11
13
MAINTAINER=	ports@FreeBSD.org
12
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	Multiplayer 2D shoot'em up game
13
COMMENT=	Multiplayer 2D shoot'em up game
(-)games/jfk/files/patch-src__client__objects_c.cc (+10 lines)
Line 0 Link Here
1
--- src/client/objects_c.cc.orig
2
+++ src/client/objects_c.cc
3
@@ -21,6 +21,7 @@
4
  */
5
 
6
 #include <cmath>
7
+#include <cstdlib>
8
 #include <string>
9
 #include "objects_c.h"
10
 #include "level.h"
(-)games/jfk/files/patch-src__lib__network.cc (+28 lines)
Line 0 Link Here
1
--- src/lib/network.cc.orig
2
+++ src/lib/network.cc
3
@@ -6,6 +6,7 @@
4
 #include <cassert>
5
 #include <cerrno>
6
 #include <csignal>
7
+#include <cstdlib>
8
 #include <cstring>
9
 #include <new>
10
 #include <string>
11
@@ -289,7 +290,7 @@
12
 
13
     set_socket_nonblocking(listenfd);
14
 
15
-    sa = (sockaddr*)std::malloc(MAXSOCKADDR);
16
+    sa = (sockaddr*)malloc(MAXSOCKADDR);
17
     if (sa == NULL)
18
         throw std::bad_alloc();
19
 }
20
@@ -370,7 +371,7 @@
21
         const size_t    MIN_POLLFD = 10;
22
         /* allocate more memory for the pollfd array */
23
         fd_alloc = std::max(MIN_POLLFD, 3 * fd_alloc / 2);
24
-        pollfd* tmp = (pollfd*)std::realloc(fds, fd_alloc * sizeof *fds);
25
+        pollfd* tmp = (pollfd*)realloc(fds, fd_alloc * sizeof *fds);
26
         if (tmp == NULL)
27
             throw std::bad_alloc();
28

Return to bug 184244