summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2013-10-15 00:56:34 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2013-10-15 02:19:01 (GMT)
commitdf1ac4655c1f59e743eab20710461fec7933b4dd (patch)
tree3905265a5727b36b142b06c2e41a5b680d0d9208
parentc561942a2e785f8b78a31ad7d3bf30dfad0176cd (diff)
downloadmxe-df1ac4655c1f59e743eab20710461fec7933b4dd.zip
mxe-df1ac4655c1f59e743eab20710461fec7933b4dd.tar.gz
mxe-df1ac4655c1f59e743eab20710461fec7933b4dd.tar.bz2
Fix libnut/ffmpeg compilation on i686-pc-mingw32
Fixes #255. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--src/libnut-1-fix-ftello.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libnut-1-fix-ftello.patch b/src/libnut-1-fix-ftello.patch
new file mode 100644
index 0000000..045940e
--- /dev/null
+++ b/src/libnut-1-fix-ftello.patch
@@ -0,0 +1,15 @@
+diff --git a/libnut/priv.h b/libnut/priv.h
+index 5183503..aac2952 100644
+--- a/libnut/priv.h
++++ b/libnut/priv.h
+@@ -44,6 +44,10 @@
+ #define MAX(a,b) ((a) > (b) ? (a) : (b))
+ #define ABS(a) ((a) > 0 ? (a) : -(a))
+
++#if (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
++#define ftello(a) (off_t)(_ftelli64(a))
++#endif
++
+ typedef struct {
+ nut_input_stream_tt isc;
+ int is_mem;