From 3285a47d5dc3ffecabe49aaa11877f1abe71df44 Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Tue, 23 May 2023 09:20:31 +0200
Subject: Fix FTBFS caused by SunOS specific patches - see Issue #344.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 tdm/backend/dm.c    | 4 ++--
 tdm/backend/getfd.c | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tdm/backend/dm.c b/tdm/backend/dm.c
index ac2471a17..627d2c23d 100644
--- a/tdm/backend/dm.c
+++ b/tdm/backend/dm.c
@@ -34,6 +34,8 @@ from the copyright holder.
  * display manager
  */
 
+#include <tqglobal.h>
+
 #include "dm.h"
 #include "dm_auth.h"
 #include "dm_error.h"
@@ -55,8 +57,6 @@ from the copyright holder.
 #include <pthread.h>
 #endif /* pthread_setname_np() */
 
-#include <tqglobal.h>
-
 // Limited by the number of VTs configured into the kernel or 256, whichever is less
 #define MAX_VT_NUMBER 48
 
diff --git a/tdm/backend/getfd.c b/tdm/backend/getfd.c
index 070ddd0cd..6dea4f56c 100644
--- a/tdm/backend/getfd.c
+++ b/tdm/backend/getfd.c
@@ -1,3 +1,5 @@
+#include <tqglobal.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -7,7 +9,6 @@
 #ifdef Q_OS_LINUX
 #include <linux/kd.h>
 #endif
-#include <tqglobal.h>
 
 #include "getfd.h"
 
-- 
cgit v1.2.3

