--- parted-3.0.orig/lib/config.h.in	2011-05-30 09:07:32.000000000 +0200
+++ parted-3.0/lib/config.h.in	2013-02-11 15:50:00.000000000 +0100
@@ -1385,6 +1385,11 @@
 # endif
 #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