]> Sergey Matveev's repositories - nnn.git/commitdiff
define _FILE_OFFSET_BITS 64 unconditionally
authorNRK <nrk@disroot.org>
Sat, 1 Jul 2023 02:56:18 +0000 (08:56 +0600)
committerNRK <nrk@disroot.org>
Sat, 1 Jul 2023 02:56:18 +0000 (08:56 +0600)
according to the manpage, it won't have any effect on 64bit system
anyways. and musl always uses 64bit so this macro doesn't have any
effect there either.

src/nnn.c

index ecedee43f9a8414f04ffa719f28011d7c6f5d0e0..653919f302b5102329441860d3c657aa3ff2b291 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#define _FILE_OFFSET_BITS 64 /* Support large files on 32-bit glibc */
+
 #if defined(__linux__) || defined(MINGW) || defined(__MINGW32__) \
        || defined(__MINGW64__) || defined(__CYGWIN__)
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
-#if defined(__arm__) || defined(__i386__)
-#define _FILE_OFFSET_BITS 64 /* Support large files on 32-bit */
-#endif
 #if defined(__linux__)
 #include <sys/inotify.h>
 #define LINUX_INOTIFY