diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-24 02:54:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-24 02:54:28 +0100 |
commit | 2995a1ea3e0d9c72087365b0278eb7b5f7a509fd (patch) | |
tree | e640a2eca99555fab882bc502927e624ec2c0758 /media-video/mpv/files/mpv-0.36.0-tests-odr.patch | |
parent | 3018b5a4bd4777c51e2793818305d7af2409a7fd (diff) |
gentoo auto-resync : 24:07:2023 - 02:54:28
Diffstat (limited to 'media-video/mpv/files/mpv-0.36.0-tests-odr.patch')
-rw-r--r-- | media-video/mpv/files/mpv-0.36.0-tests-odr.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media-video/mpv/files/mpv-0.36.0-tests-odr.patch b/media-video/mpv/files/mpv-0.36.0-tests-odr.patch new file mode 100644 index 000000000000..1c7c05c20f78 --- /dev/null +++ b/media-video/mpv/files/mpv-0.36.0-tests-odr.patch @@ -0,0 +1,30 @@ +Quickfix for USE=test with -Werror=odr (stubs, so have no real consequences). + +timer.h gets indirectly included and can declare these differently, have not +looked closer yet. +--- a/test/test_utils.c ++++ b/test/test_utils.c +@@ -110,6 +110,6 @@ + #ifndef WIN32_TESTS +-void mp_add_timeout(void) {}; +-void mp_rel_time_to_timespec(void) {}; +-void mp_time_us(void) {}; +-void mp_time_us_to_timespec(void) {}; ++void mp_add_timeout(int64_t time_us, double timeout_sec) {}; ++struct timespec mp_rel_time_to_timespec(double timeout_sec) {return (struct timespec){0};}; ++int64_t mp_time_us(void) {return 0;}; ++struct timespec mp_time_us_to_timespec(int64_t time_us) {return (struct timespec){0};}; + #endif +--- a/test/test_utils.h ++++ b/test/test_utils.h +@@ -61,6 +61,6 @@ + #ifndef WIN32_TESTS +-void mp_add_timeout(void); +-void mp_rel_time_to_timespec(void); +-void mp_time_us(void); +-void mp_time_us_to_timespec(void); ++void mp_add_timeout(int64_t time_us, double timeout_sec); ++struct timespec mp_rel_time_to_timespec(double timeout_sec); ++int64_t mp_time_us(void); ++struct timespec mp_time_us_to_timespec(int64_t time_us); + #endif |