diff options
-rw-r--r-- | block-raw-posix.c | 2 | ||||
-rw-r--r-- | posix-aio-compat.c | 2 | ||||
-rw-r--r-- | posix-aio-compat.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c index 9e3d66f4ca..4404eb15bf 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -579,7 +579,7 @@ static RawAIOCB *raw_aio_setup(BlockDriverState *bs, if (!acb) return NULL; acb->aiocb.aio_fildes = s->fd; - acb->aiocb.sigev_signo = SIGUSR2; + acb->aiocb.ev_signo = SIGUSR2; acb->aiocb.aio_buf = buf; if (nb_sectors < 0) acb->aiocb.aio_nbytes = -nb_sectors; diff --git a/posix-aio-compat.c b/posix-aio-compat.c index ef76f74ace..f141cd9e1a 100644 --- a/posix-aio-compat.c +++ b/posix-aio-compat.c @@ -94,7 +94,7 @@ static void *aio_thread(void *unused) idle_threads++; pthread_mutex_unlock(&lock); - kill(getpid(), aiocb->sigev_signo); + kill(getpid(), aiocb->ev_signo); } idle_threads--; diff --git a/posix-aio-compat.h b/posix-aio-compat.h index 5eb17043e6..0bc10f5e08 100644 --- a/posix-aio-compat.h +++ b/posix-aio-compat.h @@ -29,7 +29,7 @@ struct qemu_paiocb int aio_fildes; void *aio_buf; size_t aio_nbytes; - int sigev_signo; + int ev_signo; off_t aio_offset; /* private */ |