Skip to contentSkip to conversation

[6414] Rename sigev_signo to avoid FreeBSD problems (Juergen Lock)

Qemu-devel Blue Swirl 1 participant 1 message Jan 24, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 6414

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6414
Author:   blueswir1
Date:     2009-01-24 11:54:21 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
Rename sigev_signo to avoid FreeBSD problems (Juergen Lock)

Modified Paths:
--------------
trunk/block-raw-posix.c
trunk/posix-aio-compat.c
trunk/posix-aio-compat.h

Modified: trunk/block-raw-posix.c
===================================================================

block-raw-posix.c +1 -1
@@ -579,7 +579,7 @@
     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;

Modified: trunk/posix-aio-compat.c
===================================================================

posix-aio-compat.c +1 -1
@@ -94,7 +94,7 @@
         idle_threads++;
         pthread_mutex_unlock(&lock);
 
-        kill(getpid(), aiocb->sigev_signo);
+        kill(getpid(), aiocb->ev_signo);
     }
 
     idle_threads--;

Modified: trunk/posix-aio-compat.h
===================================================================

posix-aio-compat.h +1 -1
@@ -29,7 +29,7 @@
     int aio_fildes;
     void *aio_buf;
     size_t aio_nbytes;
-    int sigev_signo;
+    int ev_signo;
     off_t aio_offset;
 
     /* private */