aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FileUtil.cpp2
-rw-r--r--src/Platform.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp
index ae24996..4485878 100644
--- a/src/FileUtil.cpp
+++ b/src/FileUtil.cpp
@@ -16,7 +16,7 @@
using namespace std;
-#if OS_TYPE == OS_TYPE_OPENBSD
+#if OS_TYPE == OS_TYPE_OPENBSD || OS_TYPE == OS_TYPE_HAIKU
#define stat64 stat
#endif
diff --git a/src/Platform.cpp b/src/Platform.cpp
index 2df019c..9b02ca5 100644
--- a/src/Platform.cpp
+++ b/src/Platform.cpp
@@ -30,6 +30,9 @@ namespace sibs
case PLATFORM_OPENBSD: return "openbsd";
case PLATFORM_OPENBSD32: return "openbsd32";
case PLATFORM_OPENBSD64: return "openbsd64";
+ case PLATFORM_HAIKU: return "haiku";
+ case PLATFORM_HAIKU32: return "haiku32";
+ case PLATFORM_HAIKU64: return "haiku64";
default: return nullptr;
}
}
@@ -46,4 +49,4 @@ namespace sibs
{
return a & b;
}
-} \ No newline at end of file
+}