From owner-svn-ports-head@FreeBSD.ORG Sat Sep 14 03:55:20 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E054FBE4; Sat, 14 Sep 2013 03:55:20 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CD00E2EA1; Sat, 14 Sep 2013 03:55:20 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8E3tKCR011645; Sat, 14 Sep 2013 03:55:20 GMT (envelope-from amdmi3@svn.freebsd.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8E3tKqw011643; Sat, 14 Sep 2013 03:55:20 GMT (envelope-from amdmi3@svn.freebsd.org) Message-Id: <201309140355.r8E3tKqw011643@svn.freebsd.org> From: Dmitry Marakasov Date: Sat, 14 Sep 2013 03:55:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327217 - head/games/toycars/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 03:55:21 -0000 Author: amdmi3 Date: Sat Sep 14 03:55:20 2013 New Revision: 327217 URL: http://svnweb.freebsd.org/changeset/ports/327217 Log: Fix build with clang/libc++ Added: head/games/toycars/files/patch-toycars-src-CarGame.cpp (contents, props changed) head/games/toycars/files/patch-toycars-src-HotPotatoGame.cpp (contents, props changed) Added: head/games/toycars/files/patch-toycars-src-CarGame.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/toycars/files/patch-toycars-src-CarGame.cpp Sat Sep 14 03:55:20 2013 (r327217) @@ -0,0 +1,16 @@ +--- toycars/src/CarGame.cpp.orig 2009-03-28 16:37:48.000000000 +0300 ++++ toycars/src/CarGame.cpp 2013-09-14 07:36:19.958228083 +0400 +@@ -48,13 +48,6 @@ + return NULL; + } + #endif +-#ifndef drand48 +-const double kInvRandomRange = 1.0 / RAND_MAX; +-double drand48() +-{ +- return random() * kInvRandomRange; +-} +-#endif + + #ifndef INFINITY + #define INFINITY 1e20 Added: head/games/toycars/files/patch-toycars-src-HotPotatoGame.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/toycars/files/patch-toycars-src-HotPotatoGame.cpp Sat Sep 14 03:55:20 2013 (r327217) @@ -0,0 +1,17 @@ +--- toycars/src/HotPotatoGame.cpp.orig 2009-03-21 14:17:43.000000000 +0300 ++++ toycars/src/HotPotatoGame.cpp 2013-09-14 07:52:54.279227416 +0400 +@@ -18,13 +18,7 @@ + #include "glf.h" + #include "TcPreferences.h" + +-/* When using MINGW (-mno-cygwin), srandom/random isn't defined */ +-#ifndef seed48 +-unsigned short * seed48(unsigned short xseed[3]); +-#endif +-#ifndef drand48 +-double drand48(); +-#endif ++#include + + const double kExplosionSoundFrequency = 44.1e3; // Hz +