X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fskeleton_external.c;h=1b6625b2e49708500f6fe0379ffbe8a66076b391;hb=fd200c6a7d51188815ca2bc80e517768877ebef6;hp=56f89f957b5f502ccfe0add680ac80c6ef9d4a85;hpb=e6fe02651641fc64d2fa4fcfe9b1013b2947d11b;p=fio.git diff --git a/engines/skeleton_external.c b/engines/skeleton_external.c index 56f89f95..1b6625b2 100644 --- a/engines/skeleton_external.c +++ b/engines/skeleton_external.c @@ -3,7 +3,7 @@ * * Should be compiled with: * - * gcc -Wall -O2 -g -shared -rdynamic -fPIC -o skeleton_external.o skeleton_external.c + * gcc -Wall -O2 -g -D_GNU_SOURCE -include ../config-host.h -shared -rdynamic -fPIC -o skeleton_external.o skeleton_external.c * (also requires -D_GNU_SOURCE -DCONFIG_STRSEP on Linux) * */ @@ -90,7 +90,8 @@ static int fio_skeleton_cancel(struct thread_data *td, struct io_u *io_u) * io_u->xfer_buflen. Residual data count may be set in io_u->resid * for a short read/write. */ -static int fio_skeleton_queue(struct thread_data *td, struct io_u *io_u) +static enum fio_q_status fio_skeleton_queue(struct thread_data *td, + struct io_u *io_u) { /* * Double sanity check to catch errant write on a readonly setup