Use ugly libc_stat trick also for stat64.
diff --git a/file.c b/file.c
index 5712216..8bb5752 100644
--- a/file.c
+++ b/file.c
@@ -106,8 +106,10 @@
 #    define loff_t loff_t
 #  endif
 #  define stat libc_stat
+#  define stat64 libc_stat64
 #  include <sys/stat.h>
 #  undef stat
+#  undef stat64
 #else
 #  include <sys/stat.h>
 #endif