[2/2] egl: Switch to linux/drm_fourcc.h
diff mbox series

Message ID 20260331234644.14654-3-bryan.odonoghue@linaro.org
State New
Headers show
Series
  • Import drm.h and drm_mode.h for egl.cpp to use
Related show

Commit Message

Bryan O'Donoghue March 31, 2026, 11:46 p.m. UTC
Take the copy of drm_fourcc.h from th imported kernel headers instead of
from libdrm which may or may not be installed within the build environment.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 src/libcamera/egl.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/src/libcamera/egl.cpp b/src/libcamera/egl.cpp
index 5b9bbf410..a61803396 100644
--- a/src/libcamera/egl.cpp
+++ b/src/libcamera/egl.cpp
@@ -16,11 +16,10 @@ 
 
 #include <linux/dma-buf.h>
 #include <linux/dma-heap.h>
+#include <linux/drm_fourcc.h>
 
 #include <libcamera/base/thread.h>
 
-#include <libdrm/drm_fourcc.h>
-
 namespace libcamera {
 
 LOG_DEFINE_CATEGORY(eGL)