vibe-d / eventcore

High performance proactor event loop abstraction library
MIT License
60 stars 42 forks source link

Building eventcore failing on FreeBSD 13.0-RELEASE #202

Open stackyjoe opened 2 years ago

stackyjoe commented 2 years ago

Hello. Simple mistake, the current code for ThreadedFileEventDriver.taskFun() calls lseeki64 on windows and lseek64 otherwise. FreeBSD's unistd.h does not come with lseek64. I have forked and committed a simple 3 line patch which just checks

else version (linux) {
    .lseek64(...);
} else version (Posix) {
    .lseek(...);
}

Which I have used to successfully compile vibe.d and download a html page with.