mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
XMoto: fix build for x86 arch
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 3fd27675e042054ab0a7ad62ec8431b891c75a50 Mon Sep 17 00:00:00 2001
|
||||
From 5849bcfdda31b2706a0bcb7cc5c6a3ad2e2edf21 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sat, 25 Sep 2021 22:40:52 +1000
|
||||
Subject: Haiku fixes
|
||||
@@ -162,3 +162,38 @@ index 1968294..42a8d79 100644
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
||||
From d59369121818b733743eea2f7b135feafe2d547a Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sat, 25 Sep 2021 23:19:40 +1000
|
||||
Subject: Use system int defs
|
||||
|
||||
|
||||
diff --git a/vendor/ode/include/ode/odeconfig.h b/vendor/ode/include/ode/odeconfig.h
|
||||
index 6e32fc6..ddb6f3f 100644
|
||||
--- a/vendor/ode/include/ode/odeconfig.h
|
||||
+++ b/vendor/ode/include/ode/odeconfig.h
|
||||
@@ -38,6 +38,12 @@
|
||||
#endif
|
||||
|
||||
/* Well-defined common data types...need to define for 64 bit systems */
|
||||
+#ifdef __HAIKU__
|
||||
+#include <SupportDefs.h>
|
||||
+#if defined(__x86_64__)
|
||||
+ #define X86_64_SYSTEM 1
|
||||
+#endif
|
||||
+#else
|
||||
#if defined(_M_IA64) || defined(__ia64__) || defined(_M_AMD64) || defined(__x86_64__)
|
||||
#define X86_64_SYSTEM 1
|
||||
typedef int int32;
|
||||
@@ -54,6 +60,7 @@
|
||||
typedef signed char int8;
|
||||
typedef unsigned char uint8;
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* Visual C does not define these functions */
|
||||
#if defined(_MSC_VER)
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ difficult of the challenges."
|
||||
HOMEPAGE="https://xmoto.tuxfamily.org"
|
||||
COPYRIGHT="2005-2021 Tuxfamily"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/xmoto/xmoto/archive/$portVersion/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="209c8c38b1742d0620d40f90365c7a56f67c86da826c80a76d37fa46ee9c9b66"
|
||||
PATCHES="xmoto-$portVersion.patchset"
|
||||
|
||||
Reference in New Issue
Block a user