diff mbox series

[1/2] configure: Add configure check for <linux/fsi.h>

Message ID 20220222025038.29925-2-joel@jms.id.au
State New
Headers show
Series pdbg: sbefifo long running chip-op ioctl support | expand

Commit Message

Joel Stanley Feb. 22, 2022, 2:50 a.m. UTC
From: Amitay Isaacs <amitay@ozlabs.org>

This is required for sbefifo ioctl definition.

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 8b4a012177b2..7b5dacafd2ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,11 @@  else
 	AC_SUBST([LIBFDT], ["-lfdt"])
 fi
 
+AC_CHECK_HEADER([linux/fsi.h],
+	[AC_DEFINE([HAVE_LINUX_FSI_H], 1,
+		   [Define to 1 if you have the <linux/fsi> header file])],
+	[])
+
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile])