summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2024-07-09 20:55:23 +0900
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>2024-07-25 01:01:04 +0100
commit96f95b739481c46bbeb57876e7d07ffaf5306077 (patch)
treee955be5cd201944ad69777a181da57912e8f84b0
parent9164daed73ac4e32ba5397ee5ee9ed9eba4b181f (diff)
libltc: Fix Windows build
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1525>
-rw-r--r--recipes/libltc.recipe5
-rw-r--r--recipes/libltc/0001-Fix-Windows-build.patch25
2 files changed, 29 insertions, 1 deletions
diff --git a/recipes/libltc.recipe b/recipes/libltc.recipe
index 37f84e58..41248e79 100644
--- a/recipes/libltc.recipe
+++ b/recipes/libltc.recipe
@@ -12,7 +12,10 @@ class Recipe(recipe.Recipe):
btype = BuildType.MESON
meson_options = {}
- patches = ['libltc/0001-Add-minimal-meson-build-system.patch']
+ patches = [
+ 'libltc/0001-Add-minimal-meson-build-system.patch',
+ 'libltc/0001-Fix-Windows-build.patch',
+ ]
files_libs = ['libltc']
files_devel = ['include/ltc.h', '%(libdir)s/pkgconfig/ltc.pc']
diff --git a/recipes/libltc/0001-Fix-Windows-build.patch b/recipes/libltc/0001-Fix-Windows-build.patch
new file mode 100644
index 00000000..3e349f79
--- /dev/null
+++ b/recipes/libltc/0001-Fix-Windows-build.patch
@@ -0,0 +1,25 @@
+From db8d19c563eb20cb2db3662c03c3ba0e231775c3 Mon Sep 17 00:00:00 2001
+From: Seungha Yang <seungha@centricular.com>
+Date: Tue, 9 Jul 2024 20:51:22 +0900
+Subject: [PATCH] Fix Windows build
+
+../tests/ltcdecode.c:62:9: error: implicit declaration of function '_set_fmode';
+---
+ tests/ltcdecode.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/ltcdecode.c b/tests/ltcdecode.c
+index 04e25d3..0ef10c6 100644
+--- a/tests/ltcdecode.c
++++ b/tests/ltcdecode.c
+@@ -28,6 +28,7 @@
+
+ #ifdef _WIN32
+ #include <fcntl.h> // for _fmode
++#include <stdlib.h> // _set_fmode
+ #endif
+
+ #define BUFFER_SIZE (1024)
+--
+2.44.0.windows.1
+