--- parted-3.1.orig/lib/config.h.in	2012-03-02 17:10:29.000000000 +0100
+++ parted-3.1/lib/config.h.in	2013-12-25 20:03:47.000000000 +0100
@@ -1424,6 +1424,11 @@
 # define _DARWIN_USE_64_BIT_INODE 1
 #endif
 
+/* Enable large inode numbers on Mac OS X 10.5.  */
+#ifndef _DARWIN_USE_64_BIT_INODE
+# define _DARWIN_USE_64_BIT_INODE 1
+#endif
+
 /* Number of bits in a file offset, on hosts where this is settable. */
 #undef _FILE_OFFSET_BITS
 
