summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2024-06-30 06:18:02 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-30 22:53:49 +0900
commit99917282153c347064f412a6d4abca5c4d1f0e3c (patch)
tree3e1b76a2edec2b703080939258a9507b495e4668 /tdm
parentb43cb9bffc3bb45cecf6925e3b9334cf1608df70 (diff)
downloadtdebase-99917282153c347064f412a6d4abca5c4d1f0e3c.tar.gz
tdebase-99917282153c347064f412a6d4abca5c4d1f0e3c.zip
Fix for building tdm with gcc-14
Solution to issue #505 Signed-off-by: ormorph <roma251078@mail.ru> (cherry picked from commit cd4f41e76b1f4710c76610a7f225d2b7fa256b79)
Diffstat (limited to 'tdm')
-rw-r--r--tdm/backend/dm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tdm/backend/dm.c b/tdm/backend/dm.c
index 9168b88b5..05dfb7a5b 100644
--- a/tdm/backend/dm.c
+++ b/tdm/backend/dm.c
@@ -36,6 +36,13 @@ from the copyright holder.
#include <tqglobal.h>
+#include <config.h>
+#ifdef HAVE_PTHREAD_SETNAME_NP
+#define _GNU_SOURCE
+#define __BSD_VISIBLE 1
+#include <pthread.h>
+#endif /* pthread_setname_np() */
+
#include "dm.h"
#include "dm_auth.h"
#include "dm_error.h"
@@ -53,12 +60,6 @@ from the copyright holder.
# include <sys/vt.h>
#endif
-#ifdef HAVE_PTHREAD_SETNAME_NP
-#define _GNU_SOURCE
-#define __BSD_VISIBLE 1
-#include <pthread.h>
-#endif /* pthread_setname_np() */
-
// Limited by the number of VTs configured into the kernel or 256, whichever is less
#define MAX_VT_NUMBER 48