summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-03-18 15:11:08 +0100
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-03-21 17:32:30 +0100
commitd91098ef48e49dc5fd2be3ca33a26ff389b9f2d9 (patch)
tree07c68369004045bd7eee6355c5678d99ec71b843
parentb2fd743288e75738486edf88da52dcd9e159a8f4 (diff)
xfree86: common: fix missing include of <errno.h>
It's much cleaner to always include directly what one needs, instead of relying on very indirect including. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1435>
-rw-r--r--hw/xfree86/common/xf86Configure.c2
-rw-r--r--hw/xfree86/common/xf86Events.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Configure.c b/hw/xfree86/common/xf86Configure.c
index 4347f6d2f..52594c692 100644
--- a/hw/xfree86/common/xf86Configure.c
+++ b/hw/xfree86/common/xf86Configure.c
@@ -27,6 +27,8 @@
#include <xorg-config.h>
#endif
+#include <errno.h>
+
#include "xf86.h"
#include "xf86Config.h"
#include "xf86_OSlib.h"
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 404c37e46..6a349f4c6 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -53,9 +53,11 @@
#include <xorg-config.h>
#endif
+#include <errno.h>
#include <X11/X.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>
+
#include "misc.h"
#include "xf86.h"
#include "xf86Priv.h"