From 1f4a5571259ef48d9298381fda9a305adf614cf1 Mon Sep 17 00:00:00 2001 From: Joe Berner Date: Sun, 14 Nov 2021 17:11:06 -0600 Subject: [PATCH] Minor fix to compile on FreeBSD. FreeBSD's libc does not have a lseek64 function. --- source/eventcore/drivers/threadedfile.d | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/eventcore/drivers/threadedfile.d b/source/eventcore/drivers/threadedfile.d index 3e4025a5..772987f1 100644 --- a/source/eventcore/drivers/threadedfile.d +++ b/source/eventcore/drivers/threadedfile.d @@ -398,7 +398,11 @@ log("start processing"); auto bytes = buffer; version (Windows) { ._lseeki64(cast(int)file, offset, SEEK_SET); - } else .lseek64(cast(int)file, offset, SEEK_SET); + } else version (linux) { + .lseek64(cast(int)file, offset, SEEK_SET); + } else version (Posix) { + .lseek(cast(int)file, offset, SEEK_SET); + } scope (exit) { log("trigger event");