diff options
author | maya <maya@pkgsrc.org> | 2016-10-30 10:25:30 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2016-10-30 10:25:30 +0000 |
commit | 3f34cae2fda22ac7acdf4bf788f496354862ede9 (patch) | |
tree | 3a95d1d63441b4a054badcc856f1e99b0d5e3b4b | |
parent | d02296842fae93a0c796a1c9bd463543f5173b36 (diff) | |
download | pkgsrc-3f34cae2fda22ac7acdf4bf788f496354862ede9.tar.gz |
arx-libertatis: apply upstream commit which fixes build on OS X
Use correct parameter type for clock_gettime
Also from Jonathan Schleifer in PR pkg/51556
-rw-r--r-- | games/arx-libertatis/distinfo | 3 | ||||
-rw-r--r-- | games/arx-libertatis/patches/patch-src_platform_Time.cpp | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/games/arx-libertatis/distinfo b/games/arx-libertatis/distinfo index 303de4ef55d..05daa7eff90 100644 --- a/games/arx-libertatis/distinfo +++ b/games/arx-libertatis/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2016/09/02 16:46:04 wiz Exp $ +$NetBSD: distinfo,v 1.2 2016/10/30 10:25:30 maya Exp $ SHA1 (arx-libertatis-1.1.2.tar.xz) = 3b14a55553c564fd33caafb3a5bdb2d328e1fde8 RMD160 (arx-libertatis-1.1.2.tar.xz) = 94145d36664d8d747c0abc3ced9c9055fd642690 @@ -10,4 +10,5 @@ SHA1 (patch-cmake_VersionString.cmake) = afff2ae36425f3ffe0e1679d28e48ff4b6fc3d6 SHA1 (patch-src_graphics_opengl_OpenGLRenderer.cpp) = 410769fea6b911dcb283b1da85bebd2861de8d94 SHA1 (patch-src_io_fs_FilesystemPOSIX.cpp) = 96f1938038c667997350f51a2bb201de0c9843e3 SHA1 (patch-src_platform_Thread.cpp) = 38e31c77c9e6e795cb37842da82b5ed6681f6aea +SHA1 (patch-src_platform_Time.cpp) = c67f1bd2a3bdaec7426970b8f72020667abeb8ed SHA1 (patch-src_script_Script.cpp) = 29a923b5254077e2dc2cd73f69afb89025ef7012 diff --git a/games/arx-libertatis/patches/patch-src_platform_Time.cpp b/games/arx-libertatis/patches/patch-src_platform_Time.cpp new file mode 100644 index 00000000000..f7000ae7f3b --- /dev/null +++ b/games/arx-libertatis/patches/patch-src_platform_Time.cpp @@ -0,0 +1,18 @@ +$NetBSD: patch-src_platform_Time.cpp,v 1.1 2016/10/30 10:25:30 maya Exp $ + +Upstream commit 39fb9a0e3a6888a6a5f040e39896e88750c89065 +Use correct parameter type for clock_gettime + +Fixes build on OS X + +--- src/platform/Time.cpp.orig 2013-10-17 17:25:04.000000000 +0000 ++++ src/platform/Time.cpp +@@ -29,7 +29,7 @@ namespace Time { + + #include <time.h> + +-static clock_t clock_id = CLOCK_REALTIME; ++static clockid_t clock_id = CLOCK_REALTIME; + + void init() { + |