From 33bf7cc4e05023eb79e95bb0a6f388b364fb7705 Mon Sep 17 00:00:00 2001
From: Ismael Luceno <ismael@sourcemage.org>
Date: Tue, 14 Apr 2026 08:38:13 +0200
Subject: [PATCH] Declare wanting 64-bit file offset type

Let's the libc handle it transparently, instead of manually aliasing a
possibly non-existent function (or at least not exposed by default), and
which is only meaningful in 32-bit systems.

Origin: Source Mage
Upstream-Status: Pending
Signed-off-by: Ismael Luceno <ismael@sourcemage.org>
---
 plugins/builtin/source/content/providers/disk_provider.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/builtin/source/content/providers/disk_provider.cpp b/plugins/builtin/source/content/providers/disk_provider.cpp
index 9be1d7f3d90c..09b963e709ee 100644
--- a/plugins/builtin/source/content/providers/disk_provider.cpp
+++ b/plugins/builtin/source/content/providers/disk_provider.cpp
@@ -1,5 +1,5 @@
 #if !defined(OS_WEB)
-
+#define _FILE_OFFSET_BITS 64
 
 #include "content/providers/disk_provider.hpp"
 
@@ -45,9 +45,7 @@
     #include <sys/disk.h>
 #endif
 
-#if defined(OS_LINUX) && !defined(OS_FREEBSD)
-    #define lseek lseek64
-#elif defined(OS_FREEBSD)
+#if defined(OS_FREEBSD)
     #include <sys/disk.h>
     #define DEFAULT_SECTOR_SIZE 512
 #endif
-- 
Fixed up by sm-checkpatch 0.1

