blob: 144fe8bbd8bb040fab39cba386c4c5a65930cb89 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 6626765a79f125cf0ec9cdaefa51ceef718d41e7 Mon Sep 17 00:00:00 2001
2From: Michael Catanzaro <mcatanzaro@redhat.com>
3Date: Tue, 20 Dec 2022 17:10:41 -0600
4Subject: [PATCH] gthread-posix: need to #include <errno.h>
5
6a79c6af23eff5ee978db62e048828c9a992a1261 uses errno without the required
7header.
8
9
10(cherry picked from commit 03cb4261e00cf505790f4fd4e69f97b2ef4fcccd)
11
12Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/6626765a79f125cf0ec9cdaefa51ceef718d41e7]
13Signed-off-by: Alexander Kanavin <alex@linutronix.de>
14---
15 glib/gthreadprivate.h | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h
19index 6eaf422753..f34368a7c2 100644
20--- a/glib/gthreadprivate.h
21+++ b/glib/gthreadprivate.h
22@@ -41,6 +41,7 @@ struct _GRealThread
23 /* system thread implementation (gthread-posix.c, gthread-win32.c) */
24
25 #if defined(HAVE_FUTEX) || defined(HAVE_FUTEX_TIME64)
26+#include <errno.h>
27 #include <linux/futex.h>
28 #include <sys/syscall.h>
29 #include <unistd.h>
30--
31GitLab