mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
The amdgpu plugin's local amdgpu_drm.h defines struct drm_color_ctm_3x4 guarded by #ifndef HAVE_DRM_COLOR_CTM_3X4, but HAVE_DRM_COLOR_CTM_3X4 was never defined by the build system. On systems where libdrm headers already provide this struct (e.g. Alpine with libdrm 2.4.131), clang rejects the redefinition as a hard error, while gcc silently accepts identical struct redefinitions as an extension. Add a feature test that checks whether struct drm_color_ctm_3x4 is available in the system drm_mode.h and pass -DHAVE_DRM_COLOR_CTM_3X4 when it is, so the local fallback definition is skipped. Assisted-by: Claude Code (claude-opus-4-6):2025-09-03 Signed-off-by: Adrian Reber <areber@redhat.com> |
||
|---|---|---|
| .. | ||
| build | ||
| ci | ||
| nmk | ||
| criu-ns | ||
| fake-restore.sh | ||
| feature-tests.mak | ||
| fetch-clang-format.sh | ||
| flake8.cfg | ||
| github-indent-warnings.py | ||
| install-criu-image-streamer.sh | ||
| magic-gen.py | ||
| protobuf-gen.sh | ||
| ruff.toml | ||
| systemd-autofs-restart.sh | ||
| tmp-files.sh | ||
| uninstall_module.py | ||