mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
From 47b385e0397e0f45e9e998df6521ff39cf701287 Mon Sep 17 00:00:00 2001
|
|
From: Robert Kausch <robert.kausch@freac.org>
|
|
Date: Sun, 28 Apr 2019 22:50:39 +0000
|
|
Subject: Fix file access
|
|
|
|
|
|
diff --git a/Source/Shared/StdLibFileIO.cpp b/Source/Shared/StdLibFileIO.cpp
|
|
index 105c3a7..83787e6 100644
|
|
--- a/Source/Shared/StdLibFileIO.cpp
|
|
+++ b/Source/Shared/StdLibFileIO.cpp
|
|
@@ -218,9 +218,7 @@ int64 CStdLibFileIO::GetPosition()
|
|
{
|
|
#ifdef PLATFORM_ANDROID
|
|
return ftell(m_pFile);
|
|
-#elif defined(PLATFORM_LINUX)
|
|
- return ftello64(m_pFile);
|
|
-#elif PLATFORM_APPLE
|
|
+#elif !defined(PLATFORM_WINDOWS)
|
|
return ftello(m_pFile);
|
|
#else
|
|
return _ftelli64(m_pFile);
|
|
--
|
|
2.24.1
|
|
|
|
|
|
From 96be7df8791de9346c659395b94f65fb388cded8 Mon Sep 17 00:00:00 2001
|
|
From: Robert Kausch <robert.kausch@freac.org>
|
|
Date: Thu, 2 Jan 2020 12:36:43 +0000
|
|
Subject: Fix include paths.
|
|
|
|
|
|
diff --git a/Source/Projects/NonWindows/Makefile b/Source/Projects/NonWindows/Makefile
|
|
index b97d7fa..70947dc 100644
|
|
--- a/Source/Projects/NonWindows/Makefile
|
|
+++ b/Source/Projects/NonWindows/Makefile
|
|
@@ -3,7 +3,7 @@ UNAME = $(shell uname)
|
|
|
|
VERSION = 5
|
|
|
|
-CXXOPTS = -O2 -I Shared -I Source/Shared -I Source/MACLib -c
|
|
+CXXOPTS = -O2 -I Source/Shared -I Source/MACLib -c
|
|
LDOPTS = -lstdc++
|
|
|
|
DLLLDOPTS = -shared
|
|
--
|
|
2.24.1
|
|
|