Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 7f8ef553b7c433af153d48c6a16b2943780abf67 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 31 Dec 2022 14:41:52 -0800 |
| 4 | Subject: [PATCH] install: Do not undef _FILE_OFFSET_BITS |
| 5 | |
| 6 | _FILE_OFFSET_BITS is a feature test macro to determine largefile |
| 7 | support. Usually its set to 64 on systems supporting LFS. Its also |
| 8 | needed to be set to 64 for supporting 64bit time_t on glibc on 32bit |
| 9 | systems. If its undefined explicitly, then 64bit time_t can not be |
| 10 | enabled. |
| 11 | |
| 12 | Upstream-Status: Submitted [https://github.com/dracutdevs/dracut/pull/2157] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | src/install/dracut-install.c | 1 - |
| 16 | 1 file changed, 1 deletion(-) |
| 17 | |
| 18 | diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c |
| 19 | index 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 | -- |
| 31 | 2.39.0 |
| 32 | |