--- parted-3.6.orig/lib/config.h.in	2023-04-11 00:37:51.000000000 +0200
+++ parted-3.6/lib/config.h.in	2026-03-17 19:50:28.755158023 +0100
@@ -1587,6 +1587,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
 
