Skip to content

Commit

Permalink
fix(install): do not undef _FILE_OFFSET_BITS
Browse files Browse the repository at this point in the history
_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>
  • Loading branch information
kraj authored and LaszloGombos committed Feb 6, 2023
1 parent 18c5fb6 commit 70aeb4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/install/dracut-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef _FILE_OFFSET_BITS
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
Expand Down

0 comments on commit 70aeb4c

Please sign in to comment.