From 5401f135110b3876f2a806841f10a02273f2e4ef Mon Sep 17 00:00:00 2001 From: Harry Mallon Date: Mon, 26 Sep 2022 09:53:21 +0100 Subject: [PATCH] Fix build for kernels >= 5.16, where stddef.h is not available * I am testing in CentOS9 5.14.0-165.el9 * This commit removes the default gcc includes from the kernel buildsystem: 04e85bbf71c9072dcf0ad9a7150495d72461105c --- ajalibraries/ajantv2/includes/ntv2devicefeatures.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ajalibraries/ajantv2/includes/ntv2devicefeatures.h b/ajalibraries/ajantv2/includes/ntv2devicefeatures.h index 4dc2bd5..6678904 100644 --- a/ajalibraries/ajantv2/includes/ntv2devicefeatures.h +++ b/ajalibraries/ajantv2/includes/ntv2devicefeatures.h @@ -9,7 +9,9 @@ #ifndef NTV2DEVICEFEATURES_H #define NTV2DEVICEFEATURES_H -#if defined(AJALinux) || defined(AJA_LINUX) +#if defined(XENA2) + #include // For size_t +#elif defined(AJALinux) || defined(AJA_LINUX) #include // For size_t #endif