[vlc-commits] contrib: pthreads: fix mode_t being used but without the proper include
Steve Lhomme
git at videolan.org
Wed May 16 22:16:06 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 16 22:11:52 2018 +0200| [a202d1a352b4b548d2ecff88f81955a44e42728a] | committer: Steve Lhomme
contrib: pthreads: fix mode_t being used but without the proper include
in semaphore.h (used by libvpx)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a202d1a352b4b548d2ecff88f81955a44e42728a
---
contrib/src/pthreads/pthreads-fix-mode_t.patch | 13 +++++++++++++
contrib/src/pthreads/rules.mak | 1 +
2 files changed, 14 insertions(+)
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 0000000000..4a5751dc9e
--- /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 1ba5377f4b..6faf3478bb 100644
--- a/contrib/src/pthreads/rules.mak
+++ b/contrib/src/pthreads/rules.mak
@@ -23,6 +23,7 @@ endif
$(APPLY) $(SRC)/pthreads/x86-inline-asm.patch
$(APPLY) $(SRC)/pthreads/arm64.patch
$(APPLY) $(SRC)/pthreads/pthreads-fix-warning.patch
+ $(APPLY) $(SRC)/pthreads/pthreads-fix-mode_t.patch
$(MOVE)
ifdef HAVE_CROSS_COMPILE
More information about the vlc-commits
mailing list