[vlc-devel] [3.0 PATCH v2 12/20] contrib: pthreads: fix mode_t being used but without the proper include
Steve Lhomme
robux4 at ycbcr.xyz
Thu Apr 2 13:38:10 CEST 2020
in semaphore.h (used by libvpx)
(cherry picked from commit a202d1a352b4b548d2ecff88f81955a44e42728a)
---
contrib/src/pthreads/pthreads-fix-mode_t.patch | 13 +++++++++++++
contrib/src/pthreads/rules.mak | 1 +
2 files changed, 14 insertions(+)
create mode 100644 contrib/src/pthreads/pthreads-fix-mode_t.patch
diff --git a/contrib/src/pthreads/pthreads-fix-mode_t.patch b/contrib/src/pthreads/pthreads-fix-mode_t.patch
new file mode 100644
index 00000000000..4a5751dc9e3
--- /dev/null
+++ b/contrib/src/pthreads/pthreads-fix-mode_t.patch
@@ -0,0 +1,13 @@
+--- pthreads/semaphore.h 2018-05-16 22:10:12.938777300 +0200
++++ pthreads/semaphore.h.mode_t 2018-05-16 22:08:58.453800700 +0200
+@@ -98,8 +98,10 @@
+ # if defined(__MINGW64__)
+ # define HAVE_STRUCT_TIMESPEC
+ # define HAVE_MODE_T
++# include <sys/types.h>
+ # elif defined(_UWIN) || defined(__MINGW32__)
+ # define HAVE_MODE_T
++# include <sys/types.h>
+ # endif
+ #endif
+
diff --git a/contrib/src/pthreads/rules.mak b/contrib/src/pthreads/rules.mak
index 6e39bfc05be..238d9bb25e5 100644
--- a/contrib/src/pthreads/rules.mak
+++ b/contrib/src/pthreads/rules.mak
@@ -23,6 +23,7 @@ endif
$(APPLY) $(SRC)/pthreads/remove-inline.patch
$(APPLY) $(SRC)/pthreads/x86-inline-asm.patch
$(APPLY) $(SRC)/pthreads/arm64.patch
+ $(APPLY) $(SRC)/pthreads/pthreads-fix-mode_t.patch
$(MOVE)
ifdef HAVE_CROSS_COMPILE
--
2.17.1
More information about the vlc-devel
mailing list