[libav-commits] ismindex: Fix build on mingw

Martin Storsjö git at libav.org
Wed Jan 25 23:04:39 CET 2012


Module: libav
Branch: master
Commit: 8801fac365549a43a639e239faba409d8f91ef86

Author:    Martin Storsjö <martin at martin.st>
Committer: Martin Storsjö <martin at martin.st>
Date:      Wed Jan 25 13:47:38 2012 +0200

ismindex: Fix build on mingw

Signed-off-by: Martin Storsjö <martin at martin.st>

---

 tools/ismindex.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/ismindex.c b/tools/ismindex.c
index 59d1286..5980869 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -35,6 +35,10 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
+#ifdef _WIN32
+#include <io.h>
+#define mkdir(a, b) mkdir(a)
+#endif
 
 #include "libavformat/avformat.h"
 #include "libavutil/intreadwrite.h"



More information about the libav-commits mailing list