FreeBSD Bugzilla – Attachment 138316 Details for
Bug 184244
games/jfk: Fix build with clang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.97 KB, created by
tkato432
on 2013-11-24 18:10:08 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2013-11-24 18:10:08 UTC
Size:
1.97 KB
patch
obsolete
>diff -urN /usr/ports/games/jfk/Makefile games/jfk/Makefile >--- /usr/ports/games/jfk/Makefile 2013-11-06 22:01:00.000000000 +0900 >+++ games/jfk/Makefile 2013-11-25 00:00:00.000000000 +0900 >@@ -8,7 +8,6 @@ > 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 >diff -urN /usr/ports/games/jfk/files/patch-src__client__objects_c.cc games/jfk/files/patch-src__client__objects_c.cc >--- /usr/ports/games/jfk/files/patch-src__client__objects_c.cc 1970-01-01 09:00:00.000000000 +0900 >+++ games/jfk/files/patch-src__client__objects_c.cc 2013-11-25 00:00:00.000000000 +0900 >@@ -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" >diff -urN /usr/ports/games/jfk/files/patch-src__lib__network.cc games/jfk/files/patch-src__lib__network.cc >--- /usr/ports/games/jfk/files/patch-src__lib__network.cc 1970-01-01 09:00:00.000000000 +0900 >+++ games/jfk/files/patch-src__lib__network.cc 2013-11-25 00:00:00.000000000 +0900 >@@ -0,0 +1,28 @@ >+--- 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(); >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 184244
: 138316