blob: 170df7119f4129d513ea988982d8c606dab951df [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 7f8ef553b7c433af153d48c6a16b2943780abf67 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 31 Dec 2022 14:41:52 -0800
4Subject: [PATCH] install: Do not undef _FILE_OFFSET_BITS
5
6_FILE_OFFSET_BITS is a feature test macro to determine largefile
7support. Usually its set to 64 on systems supporting LFS. Its also
8needed to be set to 64 for supporting 64bit time_t on glibc on 32bit
9systems. If its undefined explicitly, then 64bit time_t can not be
10enabled.
11
12Upstream-Status: Submitted [https://github.com/dracutdevs/dracut/pull/2157]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/install/dracut-install.c | 1 -
16 1 file changed, 1 deletion(-)
17
18diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c
19index dda0caca..05a67a03 100644
20--- a/src/install/dracut-install.c
21+++ b/src/install/dracut-install.c
22@@ -22,7 +22,6 @@
23 #ifndef _GNU_SOURCE
24 #define _GNU_SOURCE
25 #endif
26-#undef _FILE_OFFSET_BITS
27 #include <ctype.h>
28 #include <errno.h>
29 #include <fcntl.h>
30--
312.39.0
32