From dbcc76987c387e2427fc022838d7bb72d36714f5 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 13 Dec 2020 23:46:59 +1000
Subject: Fix build for Haiku


diff --git a/REDasm-Library-b59bdc39df31bf9696823b8fd36d8ca8b3a0e49e/redasm/redasm_context.cpp b/REDasm-Library-b59bdc39df31bf9696823b8fd36d8ca8b3a0e49e/redasm/redasm_context.cpp
index c6599c4..93c43ca 100644
--- a/REDasm-Library-b59bdc39df31bf9696823b8fd36d8ca8b3a0e49e/redasm/redasm_context.cpp
+++ b/REDasm-Library-b59bdc39df31bf9696823b8fd36d8ca8b3a0e49e/redasm/redasm_context.cpp
@@ -53,7 +53,7 @@ void Context::cwd(const std::string &s)
 {
 #ifdef _WIN32
     SetCurrentDirectory(s.c_str());
-#elif defined(__unix__) || defined(__APPLE__)
+#elif defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
     chdir(s.c_str());
 #else
     #error "cwd: Unsupported Platform"
-- 
2.28.0

