Commit 55f11ca3c21827fe046b54a09d9ad5a897bbb7ad

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