smlinux/base/busybox/busybox-fdisk-sector-size.patch
2022-01-28 23:06:05 +05:30

22 lines
496 B
Diff

--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -166,17 +166,8 @@
typedef unsigned long long ullong;
-/* Used for sector numbers. Partition formats we know
- * do not support more than 2^32 sectors
- */
-typedef uint32_t sector_t;
-#if UINT_MAX == 4294967295
-# define SECT_FMT ""
-#elif ULONG_MAX == 4294967295
-# define SECT_FMT "l"
-#else
-# error Cant detect sizeof(uint32_t)
-#endif
+typedef uint64_t sector_t;
+#define SECT_FMT "ll"
struct hd_geometry {
unsigned char heads;