muscle: fix build, enable x86_64.

* fix #227
This commit is contained in:
Jerome Duval
2015-06-13 10:43:16 +00:00
parent 4b504f1998
commit 53214b351a
2 changed files with 42 additions and 7 deletions

View File

@@ -1,12 +1,9 @@
From 0b94a1c6c87f5a3ef44b5989a9f8f440061a23f4 Mon Sep 17 00:00:00 2001
From 076fd57c597d56cf064237e3fb487cbff02565b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Sat, 26 Jul 2014 18:14:25 +0200
Subject: [PATCH] Just use int32 for atomics on Haiku now
Subject: Just use int32 for atomics on Haiku now
We dropped the volatile requirement.
---
system/AtomicCounter.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/AtomicCounter.h b/system/AtomicCounter.h
index 465bce2..bd720e7 100644
@@ -24,3 +21,35 @@ index 465bce2..bd720e7 100644
--
1.8.3.4
From 81eeba21d85ff5279e2166a3a489dbecbf255951 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 13 Jun 2015 10:32:08 +0000
Subject: Haiku x86_64 patch
diff --git a/util/FilePathInfo.cpp b/util/FilePathInfo.cpp
index 2037bb8..4af598b 100644
--- a/util/FilePathInfo.cpp
+++ b/util/FilePathInfo.cpp
@@ -59,7 +59,7 @@ void FilePathInfo :: SetFilePath(const char * optFilePath)
CloseHandle(hFile);
}
#else
-# if defined(MUSCLE_64_BIT_PLATFORM) && !defined(__APPLE__)
+# if defined(MUSCLE_64_BIT_PLATFORM) && !defined(__APPLE__) && !defined(__HAIKU__)
struct stat64 statInfo;
if (stat64(optFilePath, &statInfo) == 0)
# else
@@ -72,7 +72,7 @@ void FilePathInfo :: SetFilePath(const char * optFilePath)
if (S_ISREG(statInfo.st_mode)) _flags |= (1L<<FPI_FLAG_ISREGULARFILE);
_size = statInfo.st_size;
-# if defined(MUSCLE_64_BIT_PLATFORM) && !defined(_POSIX_SOURCE)
+# if defined(MUSCLE_64_BIT_PLATFORM) && !defined(_POSIX_SOURCE) && !defined(__HAIKU__)
_atime = InternalizeTimeSpec(statInfo.st_atimespec);
# if !defined(__APPLE__) || (__DARWIN_64_BIT_INO_T == 1)
_ctime = InternalizeTimeSpec(statInfo.st_birthtimespec);
--
1.8.3.4