forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11-libs/libva-vdpau-driver: Fix build with >=x11-libs/libva-2.5.0
Closes: https://bugs.gentoo.org/689530 Signed-off-by: Matt Turner <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
x11-libs/libva-vdpau-driver/files/libva-vdpau-driver-0.7.4-include-linux-videodev2.h.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
https://bugs.gentoo.org/689530 | ||
|
||
libva commit 93c52a17b8d2 ("va_backend: remove unneeded | ||
linux/videodev2.h include") removed an include that provided the | ||
prototype of v4l2_format among other v4l2_* structs. | ||
|
||
Without this or a forward declaration of 'struct v4l2_format', the prototype | ||
and definition of vdpau_CreateSurfaceFromV4L2Buf() (which has a 'struct | ||
v4l2_format *' parameter) are seen as conflicting. | ||
|
||
Just include the removed header where we need it. | ||
|
||
diff --git a/src/vdpau_driver.h b/src/vdpau_driver.h | ||
index 6286d16..54d37fb 100644 | ||
--- a/src/vdpau_driver.h | ||
+++ b/src/vdpau_driver.h | ||
@@ -21,6 +21,8 @@ | ||
#ifndef VDPAU_DRIVER_H | ||
#define VDPAU_DRIVER_H | ||
|
||
+#include <linux/videodev2.h> | ||
+ | ||
#include <va/va_backend.h> | ||
#include "vaapi_compat.h" | ||
#include "vdpau_gate.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters