]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(install): do not undef _FILE_OFFSET_BITS
authorKhem Raj <raj.khem@gmail.com>
Sat, 31 Dec 2022 22:41:52 +0000 (14:41 -0800)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 6 Feb 2023 12:19:58 +0000 (07:19 -0500)
_FILE_OFFSET_BITS is a feature test macro to determine largefile
support. Usually its set to 64 on systems supporting LFS. Its also
needed to be set to 64 for supporting 64bit time_t on glibc on 32bit
systems. If its undefined explicitly, then 64bit time_t can not be
enabled.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
src/install/dracut-install.c

index dda0cacab1e97207dca1c714ed11a67690953b3c..05a67a03faa4a57fef002fd4ec44cce9a00ef694 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
-#undef _FILE_OFFSET_BITS
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>