From eeed101228cd45ab23f69bdac2294c869cad0a03 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 8 Mar 2026 13:10:08 +0000 Subject: [PATCH] Move large file source def to code --- Makefile | 2 +- src/os/file/posix/file_posix.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index de49301..10528f8 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ INSTALL_PREFIX = dist RUNTIME_ASSERT = true # Internal variables -override CFLAGS = -Wall -Wextra -Werror -pedantic -Isrc -D_LARGEFILE64_SOURCE +override CFLAGS = -Wall -Wextra -Werror -pedantic -Isrc override LIBFLAGS = -fPIC override CSTD := -std=gnu11 override CXXSTD := -std=gnu++11 diff --git a/src/os/file/posix/file_posix.c b/src/os/file/posix/file_posix.c index 999cc25..ee6db15 100644 --- a/src/os/file/posix/file_posix.c +++ b/src/os/file/posix/file_posix.c @@ -16,6 +16,7 @@ #define lseek64 lseek #endif // !WAPP_PLATFORM_APPLE +#define __USE_LARGEFILE64 #include #include #include