-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synocli-file: fix nnn for comcerto2k-7.0 (#5100)
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
cross/nnn/patches/comcerto2k/001-avoid-file-offset-64-for-32-bit-archs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# older toolchains do not support _FILE_OFFSET_BITS=64 for 32-bit archs, | ||
# only DSM 7+ toolchains do (but comcerto2k-7.0 has old toolchain). | ||
# | ||
# /sysroot/usr/include/fts.h:41:3: error: #error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64" | ||
# | ||
--- src/nnn.c.orig 2021-11-23 13:03:45.000000000 +0000 | ||
+++ src/nnn.c 2021-12-16 19:45:28.030685890 +0000 | ||
@@ -33,9 +33,6 @@ | ||
#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 |