Added include for limits.h
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index dd2ede0..a7391e6 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -13,6 +13,10 @@
 #include "Python.h"
 #include "structmember.h"
 
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 #ifndef DONT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif /* DONT_HAVE_SYS_TYPES_H */
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 2b016ed..721a4f2 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -17,6 +17,9 @@
 #else
 #include <sys/types.h>		/* For size_t */
 #endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
 
 #define ROUNDUP(n, PyTryBlock) \
 	((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
@@ -258,6 +261,7 @@
 list_compare(PyListObject *v, PyListObject *w)
 {
 	int i;
+	
 	for (i = 0; i < v->ob_size && i < w->ob_size; i++) {
 		int cmp = PyObject_Compare(v->ob_item[i], w->ob_item[i]);
 		if (cmp != 0)