diff --git a/src/coroutine/system.cc b/src/coroutine/system.cc index 62635887d6..266e457215 100644 --- a/src/coroutine/system.cc +++ b/src/coroutine/system.cc @@ -770,7 +770,9 @@ int async(AsyncIouring::opcodes opcode, event.wbuf = wbuf; event.statxbuf = statxbuf; event.count = count; +#ifdef HAVE_IOURING_FTRUNCATE event.offset = offset; +#endif bool result = false; AsyncIouring *iouring = SwooleTG.async_iouring;