From c38d69ce551b670aac716b54e7bfabc671569c35 Mon Sep 17 00:00:00 2001
From: Lars Knoll <lars.knoll@digia.com>
Date: Mon, 1 Sep 2014 13:57:08 +0200
Subject: [PATCH] Packport FreeBSD defines from Platform.h in qtdeclarative
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This should get QtScript to compile on some more versions of
FreeBSD, including DragonFly.

Task-number: QTBUG-35880
Change-Id: Ie40cf8d1cc8a676d51694e609ddc9f85d22b9b81
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
---
 src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
index 66a986af..cd60d438 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -441,7 +441,7 @@
 #endif
 
 /* OS(FREEBSD) - FreeBSD */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
 #define WTF_OS_FREEBSD 1
 #endif
 
-- 
GitLab