Blame 0230-MINGW-AC_LIBOBJ-replacement-of-fileblocks.patch

ddb6764
diff -rupN Python-2.7.13/Python/fileblocks.c Python-2.7.13-new/Python/fileblocks.c
ddb6764
--- Python-2.7.13/Python/fileblocks.c	1970-01-01 01:00:00.000000000 +0100
ddb6764
+++ Python-2.7.13-new/Python/fileblocks.c	2017-01-21 01:46:05.997612990 +0100
ddb6764
@@ -0,0 +1,17 @@
ddb6764
+/*
ddb6764
+-- Macro: AC_STRUCT_ST_BLOCKS
ddb6764
+    If 'struct stat' contains an 'st_blocks' member, define
ddb6764
+    'HAVE_STRUCT_STAT_ST_BLOCKS'.  Otherwise, require an 'AC_LIBOBJ'
ddb6764
+    replacement of 'fileblocks'.
ddb6764
+*/
ddb6764
+
ddb6764
+#if !HAVE_STRUCT_STAT_ST_BLOCKS
ddb6764
+/* If necessary you may see gnulib for replacement function:
ddb6764
+ * off_t st_blocks (off_t size).
ddb6764
+ * You may found code available under GPL2 or GPL3.
ddb6764
+ */
ddb6764
+
ddb6764
+/* This declaration is solely to ensure that after preprocessing
ddb6764
+   this file is never empty. */
ddb6764
+typedef int textutils_fileblocks_unused;
ddb6764
+#endif