Commit 55f11ca3c21827fe046b54a09d9ad5a897bbb7ad
1 parent
0da2ea1b
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
Showing
3 changed files
with
3 additions
and
3 deletions
block-raw-posix.c
@@ -579,7 +579,7 @@ static RawAIOCB *raw_aio_setup(BlockDriverState *bs, | @@ -579,7 +579,7 @@ static RawAIOCB *raw_aio_setup(BlockDriverState *bs, | ||
579 | if (!acb) | 579 | if (!acb) |
580 | return NULL; | 580 | return NULL; |
581 | acb->aiocb.aio_fildes = s->fd; | 581 | acb->aiocb.aio_fildes = s->fd; |
582 | - acb->aiocb.sigev_signo = SIGUSR2; | 582 | + acb->aiocb.ev_signo = SIGUSR2; |
583 | acb->aiocb.aio_buf = buf; | 583 | acb->aiocb.aio_buf = buf; |
584 | if (nb_sectors < 0) | 584 | if (nb_sectors < 0) |
585 | acb->aiocb.aio_nbytes = -nb_sectors; | 585 | acb->aiocb.aio_nbytes = -nb_sectors; |
posix-aio-compat.c
@@ -94,7 +94,7 @@ static void *aio_thread(void *unused) | @@ -94,7 +94,7 @@ static void *aio_thread(void *unused) | ||
94 | idle_threads++; | 94 | idle_threads++; |
95 | pthread_mutex_unlock(&lock); | 95 | pthread_mutex_unlock(&lock); |
96 | 96 | ||
97 | - kill(getpid(), aiocb->sigev_signo); | 97 | + kill(getpid(), aiocb->ev_signo); |
98 | } | 98 | } |
99 | 99 | ||
100 | idle_threads--; | 100 | idle_threads--; |
posix-aio-compat.h
@@ -29,7 +29,7 @@ struct qemu_paiocb | @@ -29,7 +29,7 @@ struct qemu_paiocb | ||
29 | int aio_fildes; | 29 | int aio_fildes; |
30 | void *aio_buf; | 30 | void *aio_buf; |
31 | size_t aio_nbytes; | 31 | size_t aio_nbytes; |
32 | - int sigev_signo; | 32 | + int ev_signo; |
33 | off_t aio_offset; | 33 | off_t aio_offset; |
34 | 34 | ||
35 | /* private */ | 35 | /* private */ |