mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Rocks&Diamonds: fix start from symlinks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 8c096e3290fd2b55f5f4da943be2b0ba434041ad Mon Sep 17 00:00:00 2001
|
||||
From 0b47ee21ea3f03466697df0dcd0ed3168f24772c Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 23 Mar 2019 13:23:30 +0100
|
||||
Subject: fix undefined references to fopen64, ftello64 and fseeko64
|
||||
@@ -18,5 +18,29 @@ index 0741de4..1791243 100644
|
||||
# define ftello64 ftello
|
||||
# define fseeko64 fseeko
|
||||
--
|
||||
2.19.1
|
||||
2.26.0
|
||||
|
||||
|
||||
From f4c180d791a648dbeaa2c99ea23b4532b4542145 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Wed, 10 Jun 2020 08:49:55 +1000
|
||||
Subject: Use realpath for argv[0]
|
||||
|
||||
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index 59faa00..23d34d0 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -7749,6 +7749,9 @@ static void InitProgramConfig(char *command_filename)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
+#ifdef __HAIKU__
|
||||
+ argv[0] = realpath(argv[0], NULL);
|
||||
+#endif
|
||||
InitProgramConfig(argv[0]);
|
||||
|
||||
InitWindowTitleFunction(getWindowTitleString);
|
||||
--
|
||||
2.26.0
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ DESCRIPTION="
|
||||
HOMEPAGE="https://www.artsoft.org/rocksndiamonds/"
|
||||
COPYRIGHT="2001-2019 Artsoft Entertainment"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="93da17fdfb8e4b22b2e050724dc775cf86dc6ed278ffab8bc18922ed2b2594cb"
|
||||
ADDITIONAL_FILES="rocksndiamonds.rdef.in"
|
||||
|
||||
Reference in New Issue
Block a user