From aaf394f212f927e275c2c525a255f338d52676cd Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 11 Jan 2024 15:01:27 +0100 Subject: lib/*.h: ensure that all includes will be there Headers should be self-contained, having all includes they need to built. Add the missing ones (alphabetically sorted). Checking what includes were missed was done with the help of this small script: for i in $(ls lib/*.h|grep -v igt_freebsd.h|sort); do gcc -I . -I build/ -I include/ -I ./include/drm-uapi/ -I lib/ -I /usr/include/cairo/ -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include/ -c $i done While at this also sorted includes and added a missing logic to detect duplicated includes at igt_tread. Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Kamil Konieczny --- lib/debug.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/debug.h') diff --git a/lib/debug.h b/lib/debug.h index af9cf391e..ca4b31e6c 100644 --- a/lib/debug.h +++ b/lib/debug.h @@ -28,6 +28,9 @@ #ifndef _DEBUG_H_ #define _DEBUG_H_ +#include +#include + #define DEBUG_PROTOCOL_VERSION 1 #define COMMUNICATION_OFFSET 0xc00 #define COMMUNICATION_QWORD 0xc0 -- cgit v1.2.3