From: NRK Date: Sat, 1 Jul 2023 02:56:18 +0000 (+0600) Subject: define _FILE_OFFSET_BITS 64 unconditionally X-Git-Tag: v4.9~9^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=db8b61866b1cc6dbbf05f83a7ca623f42eb9fcb7;p=nnn.git define _FILE_OFFSET_BITS 64 unconditionally 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. --- diff --git a/src/nnn.c b/src/nnn.c index ecedee43..653919f3 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -28,14 +28,13 @@ * 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 #define LINUX_INOTIFY