pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/openttd/patches openttd: Missing patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6243863fa63d
branches:  trunk
changeset: 340137:6243863fa63d
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Sep 23 09:49:52 2019 +0000

description:
openttd: Missing patch

diffstat:

 games/openttd/patches/patch-src_core_endian__type.hpp |  20 +++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 167eb0fe25ac -r 6243863fa63d games/openttd/patches/patch-src_core_endian__type.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/patches/patch-src_core_endian__type.hpp     Mon Sep 23 09:49:52 2019 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_core_endian__type.hpp,v 1.1 2019/09/23 09:49:52 nia Exp $
+
+NetBSD does not have endian definitions in param.h
+
+--- src/core/endian_type.hpp.orig      2019-09-16 19:15:04.000000000 +0000
++++ src/core/endian_type.hpp
+@@ -35,6 +35,13 @@
+ #     else
+ #             define TTD_ENDIAN TTD_BIG_ENDIAN
+ #     endif
++#elif defined(__NetBSD__)
++#     include <sys/endian.h>
++#     if BYTE_ORDER == LITTLE_ENDIAN
++#             define TTD_ENDIAN TTD_LITTLE_ENDIAN
++#     else
++#             define TTD_ENDIAN TTD_BIG_ENDIAN
++#     endif
+ #elif !defined(TESTING)
+ #     include <sys/param.h>
+ #     if __BYTE_ORDER == __LITTLE_ENDIAN



Home | Main Index | Thread Index | Old Index