aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2022-12-30 09:48:01 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2023-01-24 09:08:01 +0000
commit1e7e886bab969f44ca4eb00d5b2d8636a3ddef09 (patch)
tree4686c679125d848cb116ba854fe0179e4e00e949
parenta1a8fe77691694ebc55c0d940300badb48554a03 (diff)
downloadsrc-1e7e886bab969f44ca4eb00d5b2d8636a3ddef09.tar.gz
src-1e7e886bab969f44ca4eb00d5b2d8636a3ddef09.zip
linuxkpi: Include `errno.h` from `acpi/video.h`
This defines `ENODEV` used in this header. This fixes a build failure in the DRM drivers. Reviewed by: bz Approved by: bz Differential Revision: https://reviews.freebsd.org/D37909 (cherry picked from commit 8dfb5571c4d88b2320407968b14590aa80b44fb3)
-rw-r--r--sys/compat/linuxkpi/common/include/acpi/video.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/acpi/video.h b/sys/compat/linuxkpi/common/include/acpi/video.h
index df1844502ba8..ace4a42a1016 100644
--- a/sys/compat/linuxkpi/common/include/acpi/video.h
+++ b/sys/compat/linuxkpi/common/include/acpi/video.h
@@ -31,6 +31,8 @@
#ifndef _LINUXKPI_ACPI_VIDEO_H_
#define _LINUXKPI_ACPI_VIDEO_H_
+#include <sys/errno.h>
+
#define ACPI_VIDEO_CLASS "video"
#define ACPI_VIDEO_NOTIFY_PROBE 0x81