Revert "mutter: fix undefined reference to gettid"

This patch was temporarily added to resolve a build failure that required
rebuilding the musl cross compilers.

This reverts commit d9e7fef13f.
This commit is contained in:
oreo639 2022-07-06 17:35:55 -07:00 committed by Đoàn Trần Công Danh
parent 4f535a3b35
commit 21ad7ae2e9
1 changed files with 0 additions and 23 deletions

View File

@ -1,23 +0,0 @@
gettid wasn't implemented in musl until 1.2.2+
diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c
index 2245387..2842593 100644
--- a/src/backends/native/meta-backend-native.c
+++ b/src/backends/native/meta-backend-native.c
@@ -39,6 +39,7 @@
#include "backends/native/meta-input-thread.h"
#include <stdlib.h>
+#include <syscall.h>
#include "backends/meta-cursor-tracker-private.h"
#include "backends/meta-idle-manager.h"
@@ -231,7 +232,7 @@ meta_backend_native_post_init (MetaBackend *backend)
priority = sched_get_priority_min (SCHED_RR);
meta_dbus_realtime_kit1_call_make_thread_realtime_sync (rtkit_proxy,
- gettid (),
+ (pid_t) syscall (SYS_gettid),
priority,
NULL,
&error);