Skip to contentSkip to conversation

v4l2-compliance: Fix building against libc++

PATCH Superseded James Le Cuirot 1 participant 2 messages Feb 7, 2024 Media (V4L/DVB)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l2-compliance: Fix building against libc++

v4l2-test-time32-64.cpp included compiler.h, which checks _LIBCPP_VERSION. This only works against libc++ when a C++ header has already been included, which wasn't the case here.

v4l2-test-time32-64.cpp doesn't need to include compiler.h anyway, so just drop the include.

---
 utils/v4l2-compliance/v4l2-test-time32-64.cpp | 1 -
 1 file changed, 1 deletion(-)
utils/v4l2-compliance/v4l2-test-time32-64.cpp +0 -1
index e175c055..810fd5e4 100644
@@ -16,7 +16,6 @@
 
 #include <sys/types.h>
 
-#include "compiler.h"
 #include "v4l2-compliance.h"
 
 typedef __s32		old_time32_t;
Signature · 1 line
2.43.0
#1 lore raw
Quoted 17 lines · James Le Cuirot

v4l2-test-time32-64.cpp included compiler.h, which checks _LIBCPP_VERSION. This only works against libc++ when a C++ header has already been included, which wasn't the case here.

v4l2-test-time32-64.cpp doesn't need to include compiler.h anyway, so just drop the include.

---
 utils/v4l2-compliance/v4l2-test-time32-64.cpp | 1 -
 1 file changed, 1 deletion(-)
utils/v4l2-compliance/v4l2-test-time32-64.cpp +0 -0
index e175c055..810fd5e4 100644

utils/v4l2-compliance/v4l2-test-time32-64.cpp line 21

Quoted 7 lines
utils/v4l2-compliance/v4l2-test-time32-64.cpp +0 -1
@@ -16,7 +16,6 @@
 
 #include <sys/types.h>
 
-#include "compiler.h"
 #include "v4l2-compliance.h"
 
 typedef __s32		old_time32_t;

Sorry, ignore this patch. I'll write a better one soon.