physfs: fix x86_64 build.

This commit is contained in:
Jérôme Duval
2016-11-28 22:42:53 +01:00
parent a24ca628d6
commit 525cf62ad0
2 changed files with 25 additions and 2 deletions

View 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

View File

@@ -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"