[NUT-devel] [PATCH] libnut: fix building on i686-pc-mingw32
Timothy Gu
timothygu99 at gmail.com
Thu Oct 24 06:23:12 CEST 2013
Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
src/trunk/libnut/priv.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/trunk/libnut/priv.h b/src/trunk/libnut/priv.h
index 5183503..aac2952 100644
--- a/src/trunk/libnut/priv.h
+++ b/src/trunk/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;
--
1.8.1.2
More information about the NUT-devel
mailing list