Commit d0a3570300812bc81888e7a7eadb9311621dc9a7

Sam James 2022-09-12T18:02:21

configure.ac: fix configure tests broken with Clang 15 (implicit function declarations) Clang 15 makes implicit function declarations fatal by default which leads to some configure tests silently failing/returning the wrong result. Signed-off-by: Sam James <sam@gentoo.org>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/configure.ac b/configure.ac
index d27fa9a..ca26437 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2728,6 +2728,7 @@ CheckInputKD()
     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
       #include <linux/kd.h>
       #include <linux/keyboard.h>
+      #include <sys/ioctl.h>
     ]], [[
         struct kbentry kbe;
         kbe.kb_table = KG_CTRL;