pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/openttd openttd: Include alloca.h on SunOS to ge...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4a0bde29f1a1
branches:  trunk
changeset: 390735:4a0bde29f1a1
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Dec 28 10:13:29 2022 +0000

description:
openttd: Include alloca.h on SunOS to get alloca definition

diffstat:

 games/openttd/distinfo                               |   3 ++-
 games/openttd/patches/patch-src_core_alloc__func.hpp |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 34412475a4da -r 4a0bde29f1a1 games/openttd/distinfo
--- a/games/openttd/distinfo    Wed Dec 28 10:10:31 2022 +0000
+++ b/games/openttd/distinfo    Wed Dec 28 10:13:29 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.41 2022/05/08 12:06:01 triaxx Exp $
+$NetBSD: distinfo,v 1.42 2022/12/28 10:13:29 nia Exp $
 
 BLAKE2s (openttd-12.2-source.tar.xz) = 340eb17b3123514fc845011abff5ab4e1432c17e5c29c0f3be2f99360eabfeaf
 SHA512 (openttd-12.2-source.tar.xz) = 577792faee1d5e0c19fbfe31501dab3359f8e1327caa87e6378bb3e616ab6b2c64d02044c6ac99f7c40397df7bc6847a6b432852a5318a2db574203ddebfaef6
 Size (openttd-12.2-source.tar.xz) = 7377496 bytes
 SHA1 (patch-cmake_InstallAndPackage.cmake) = 18b02c11bf59639124c2a852d5a19dda3ae0ff81
+SHA1 (patch-src_core_alloc__func.hpp) = 9c5a855316e3262c51c1b4c836de760d53abb759
diff -r 34412475a4da -r 4a0bde29f1a1 games/openttd/patches/patch-src_core_alloc__func.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/patches/patch-src_core_alloc__func.hpp      Wed Dec 28 10:13:29 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_core_alloc__func.hpp,v 1.3 2022/12/28 10:13:30 nia Exp $
+
+Need alloca.h to use alloca on SunOS.
+
+--- src/core/alloc_func.hpp.orig       2022-04-02 10:38:20.000000000 +0000
++++ src/core/alloc_func.hpp
+@@ -10,6 +10,10 @@
+ #ifndef ALLOC_FUNC_HPP
+ #define ALLOC_FUNC_HPP
+ 
++#ifdef __sun
++#include <alloca.h>
++#endif
++
+ /*
+  * Functions to exit badly with an error message.
+  * It has to be linked so the error messages are not



Home | Main Index | Thread Index | Old Index