summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2013-11-24 01:00:26 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2013-11-24 01:00:26 (GMT)
commit609d96fb8d411eee481691303e1344101086c52a (patch)
tree9f5208a81aa0bef6f216f406594c324759fd2a55
parentf0966f2dcc728adc9e6d039ff975d41abf7fea06 (diff)
downloadmxe-609d96fb8d411eee481691303e1344101086c52a.zip
mxe-609d96fb8d411eee481691303e1344101086c52a.tar.gz
mxe-609d96fb8d411eee481691303e1344101086c52a.tar.bz2
libnut: fix ftello() again
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--src/libnut-1-ftello.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libnut-1-ftello.patch b/src/libnut-1-ftello.patch
new file mode 100644
index 0000000..e6e8afd
--- /dev/null
+++ b/src/libnut-1-ftello.patch
@@ -0,0 +1,12 @@
+diff -Naur libnut-r681.orig/libnut/priv.h libnut-r681/libnut/priv.h
+--- libnut-r681.orig/libnut/priv.h 2013-11-09 09:31:47.000000000 -0800
++++ libnut-r681/libnut/priv.h 2013-11-23 16:56:13.085645547 -0800
+@@ -45,7 +45,7 @@
+ #define ABS(a) ((a) > 0 ? (a) : -(a))
+
+ #if (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
+-#define ftello(a) ((off_t)(_ftelli64(a)))
++#define ftello(a) ((off_t)(ftello64(a)))
+ #endif
+
+ typedef struct {