diff options
author | nia <nia@pkgsrc.org> | 2019-09-23 09:49:52 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-09-23 09:49:52 +0000 |
commit | 275eba8f3420dc94e5b07db6159439389f385527 (patch) | |
tree | 2f51a6f94fe2c2bbd456b6c9e1620a5d0eabc522 /games | |
parent | 873c14b56ee610cb2fabd5adc175933b86c88371 (diff) | |
download | pkgsrc-275eba8f3420dc94e5b07db6159439389f385527.tar.gz |
openttd: Missing patch
Diffstat (limited to 'games')
-rw-r--r-- | games/openttd/patches/patch-src_core_endian__type.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/openttd/patches/patch-src_core_endian__type.hpp b/games/openttd/patches/patch-src_core_endian__type.hpp new file mode 100644 index 00000000000..55cb8a4887e --- /dev/null +++ b/games/openttd/patches/patch-src_core_endian__type.hpp @@ -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 |