aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-06 04:14:22 +0000
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit3daf2e03d34ed2c4ab580361673f40f5827bed69 (patch)
tree10ca03a42ef68296c5d720ab298143a7c6f0acc9 /src
parent31aa47522a0e644289ab606236fd5ccb505f9c54 (diff)
Add support for Haiku
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
+}