Browse Source

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
blueswir1 16 years ago
parent
commit
55f11ca3c2
3 changed files with 3 additions and 3 deletions
  1. 1 1
      block-raw-posix.c
  2. 1 1
      posix-aio-compat.c
  3. 1 1
      posix-aio-compat.h

+ 1 - 1
block-raw-posix.c

@@ -579,7 +579,7 @@ static RawAIOCB *raw_aio_setup(BlockDriverState *bs,
     if (!acb)
     if (!acb)
         return NULL;
         return NULL;
     acb->aiocb.aio_fildes = s->fd;
     acb->aiocb.aio_fildes = s->fd;
-    acb->aiocb.sigev_signo = SIGUSR2;
+    acb->aiocb.ev_signo = SIGUSR2;
     acb->aiocb.aio_buf = buf;
     acb->aiocb.aio_buf = buf;
     if (nb_sectors < 0)
     if (nb_sectors < 0)
         acb->aiocb.aio_nbytes = -nb_sectors;
         acb->aiocb.aio_nbytes = -nb_sectors;

+ 1 - 1
posix-aio-compat.c

@@ -94,7 +94,7 @@ static void *aio_thread(void *unused)
         idle_threads++;
         idle_threads++;
         pthread_mutex_unlock(&lock);
         pthread_mutex_unlock(&lock);
 
 
-        kill(getpid(), aiocb->sigev_signo);
+        kill(getpid(), aiocb->ev_signo);
     }
     }
 
 
     idle_threads--;
     idle_threads--;

+ 1 - 1
posix-aio-compat.h

@@ -29,7 +29,7 @@ struct qemu_paiocb
     int aio_fildes;
     int aio_fildes;
     void *aio_buf;
     void *aio_buf;
     size_t aio_nbytes;
     size_t aio_nbytes;
-    int sigev_signo;
+    int ev_signo;
     off_t aio_offset;
     off_t aio_offset;
 
 
     /* private */
     /* private */