Files
sablink-distro/dev-lang/python-tk/files/python-3.2.3-x32.patch
T
2013-03-25 11:38:22 +00:00

21 lines
654 B
Diff

http://bugs.python.org/issue15000
x32 has 64bit values for the first two args
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -175,8 +175,13 @@
* chooses to break compatibility with all existing binaries. Highly Unlikely.
*/
struct linux_dirent {
+#if defined(__x86_64__) && defined(__ILP32__)
+ unsigned long long d_ino;
+ unsigned long long d_off;
+#else
unsigned long d_ino; /* Inode number */
unsigned long d_off; /* Offset to next linux_dirent */
+#endif
unsigned short d_reclen; /* Length of this linux_dirent */
char d_name[256]; /* Filename (null-terminated) */
};