diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-24 11:54:21 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-24 11:54:21 +0000 |
commit | 55f11ca3c21827fe046b54a09d9ad5a897bbb7ad (patch) | |
tree | 269876c4cadfddb39e2c1286d01f227b2caa1227 | |
parent | 0da2ea1b37622ea6608031b5cd9dcca8f1b0e12d (diff) |
Rename sigev_signo to avoid FreeBSD problems (Juergen Lock)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6414 c046a42c-6fe2-441c-8c8c-71466251a162
-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 */ |