From 5c1c499fe387579e6b803a8d71ea0d7c6c8c0647 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Thu, 18 Mar 2021 16:00:29 +0300
Subject: Fix build on Haiku


diff --git a/examples/ThumbNailer/AverageLoadManager.cpp b/examples/ThumbNailer/AverageLoadManager.cpp
index 72826ef..fc2c17b 100644
--- a/examples/ThumbNailer/AverageLoadManager.cpp
+++ b/examples/ThumbNailer/AverageLoadManager.cpp
@@ -46,7 +46,7 @@ QPair<int, int> AverageLoadManager::workersRange() const
 
 void AverageLoadManager::update()
 {
-#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID)
+#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && ! defined(Q_OS_HAIKU)
     double averages[3];
     if (getloadavg(averages, 3) == -1) {
         return;
-- 
2.30.2

