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
This commit is contained in:
parent
0da2ea1b37
commit
55f11ca3c2
@ -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;
|
||||
|
@ -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--;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user