fix system breakage window during make install due to permissions
[musl] / src / aio / aio_readwrite.c
index e4c95aa..0de3d4f 100644 (file)
@@ -2,8 +2,8 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
-#include <limits.h>
 #include "pthread_impl.h"
+#include "libc.h"
 
 static void dummy(void)
 {
@@ -51,7 +51,7 @@ static void *io_thread(void *p)
 
        __aio_wake();
 
-       switch (cb->aio_sigevent.sigev_notify) {
+       switch (sev.sigev_notify) {
        case SIGEV_SIGNAL:
                notify_signal(&sev);
                break;