From 32c3e0b319351703f54ffa3a711ad331843d81ff Mon Sep 17 00:00:00 2001
From: martell <martellmalone@gmail.com>
Date: Sat, 22 Nov 2014 22:15:33 +0000
Subject: [PATCH 2/7] MinGW-w64: lfind's _NumOfElements is an unsigned int

---
 modules/access/dtv/access.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index a5fc83d872..813c86bfea 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -665,7 +665,12 @@ static const char *var_InheritModulation (vlc_object_t *obj, const char *var)
     if (mod == NULL)
         return "";
 
-    size_t n = sizeof (modulation_vlc) / sizeof (modulation_vlc[0]);
+#ifdef __MINGW32__
+    unsigned int n;
+#else
+    size_t_n;
+#endif
+    n = sizeof (modulation_vlc) / sizeof (modulation_vlc[0]);
     const char *const *p = lfind (mod, modulation_vlc, &n, sizeof (mod), modcmp);
     if (p != NULL)
     {
-- 
2.15.0

