pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/openttd/patches



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Sep 23 09:49:52 UTC 2019

Added Files:
        pkgsrc/games/openttd/patches: patch-src_core_endian__type.hpp

Log Message:
openttd: Missing patch


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/games/openttd/patches/patch-src_core_endian__type.hpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/games/openttd/patches/patch-src_core_endian__type.hpp
diff -u /dev/null pkgsrc/games/openttd/patches/patch-src_core_endian__type.hpp:1.1
--- /dev/null   Mon Sep 23 09:49:52 2019
+++ pkgsrc/games/openttd/patches/patch-src_core_endian__type.hpp        Mon Sep 23 09:49:52 2019
@@ -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