From d82a98f8d86c4dba669781e856590144ae4a55f8 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 21 Aug 2018 23:05:47 +1000
Subject: Fix build for Haiku


diff --git a/src/core/RDebug.cpp b/src/core/RDebug.cpp
index 0146f2a..b68e1e8 100644
--- a/src/core/RDebug.cpp
+++ b/src/core/RDebug.cpp
@@ -34,7 +34,7 @@ QMap<QString, int> RDebug::counter;
 QString RDebug::prefix;
 
 void RDebug::printBacktrace(const QString& prefix) {
-#if !defined(Q_OS_WIN) && !defined(Q_OS_ANDROID)
+#if !defined(Q_OS_WIN) && !defined(Q_OS_ANDROID) && !defined(Q_OS_HAIKU)
     void *array[20];
     size_t size;
     char **strings;
diff --git a/src/scripting/ecmaapi/ecmaapi.pro b/src/scripting/ecmaapi/ecmaapi.pro
index 6fa6cdd..e9a60bc 100644
--- a/src/scripting/ecmaapi/ecmaapi.pro
+++ b/src/scripting/ecmaapi/ecmaapi.pro
@@ -5,7 +5,7 @@ TARGET = $${RLIBNAME}ecmaapi
 CONFIG -= warn_on
 CONFIG += warn_off
 CONFIG += precompile_header
-PRECOMPILED_HEADER = stable.h
+#PRECOMPILED_HEADER = stable.h
 OTHER_FILES += ecmaapi.dox
 DEFINES += QCADECMAAPI_LIBRARY
 RC_FILE = ecmaapi.rc
-- 
2.16.4

