mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
physfs: fix x86_64 build.
This commit is contained in:
22
dev-games/physfs/patches/physfs-2.0.3.patchset
Normal file
22
dev-games/physfs/patches/physfs-2.0.3.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From e5b9e4951eb0c1e7b8b203e625ecfb350cc0a47f Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Mon, 28 Nov 2016 20:00:57 +0000
|
||||
Subject: x86_64 haiku patch
|
||||
|
||||
|
||||
diff --git a/platform/beos.cpp b/platform/beos.cpp
|
||||
index ee7b190..91f9a23 100644
|
||||
--- a/platform/beos.cpp
|
||||
+++ b/platform/beos.cpp
|
||||
@@ -199,7 +199,7 @@ char *__PHYSFS_platformCalcBaseDir(const char *argv0)
|
||||
|
||||
void *__PHYSFS_platformGetThreadID(void)
|
||||
{
|
||||
- return((void *) find_thread(NULL));
|
||||
+ return((void *) ((size_t) find_thread(NULL)));
|
||||
} /* __PHYSFS_platformGetThreadID */
|
||||
|
||||
|
||||
--
|
||||
2.10.2
|
||||
|
||||
@@ -11,9 +11,10 @@ game is running), etc."
|
||||
HOMEPAGE="http://icculus.org/physfs"
|
||||
COPYRIGHT="2001-2012 Ryan C. Gordon"
|
||||
LICENSE="PHYSFS"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="http://icculus.org/physfs/downloads/physfs-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="ca862097c0fb451f2cacd286194d071289342c107b6fe69079c079883ff66b69"
|
||||
PATCHES="physfs-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
Reference in New Issue
Block a user