Commit 8936849c authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fix fstat() call for large file on 32 bit system

parent fef37f25
all:
tar xf e2fsprogs-1.45.6.tar.gz
patch -Np1 -d e2fsprogs-1.45.6 < e2fsprogs-1.45.6-largefile.patch
mkdir e2fsprogs-1.45.6/build
cd e2fsprogs-1.45.6/build && ../configure --build=$(CLFS_TARGET) --prefix=/usr --bindir=/bin --with-root-prefix="" --enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd --disable-fsck
$(MAKE) -C e2fsprogs-1.45.6/build
......
diff -uNr e2fsprogs-1.45.6/misc/e2image.c e2fsprogs-1.45.6-largefile/misc/e2image.c
--- e2fsprogs-1.45.6/misc/e2image.c 2020-03-21 14:54:04.000000000 +1030
+++ e2fsprogs-1.45.6-largefile/misc/e2image.c 2022-02-10 10:56:44.936123774 +1030
@@ -10,6 +10,7 @@
* %End-Header%
*/
+#define _FILE_OFFSET_BITS 64
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment