add posix_spawn [f]chdir file actions
[musl] / include / aio.h
index 3e35134..19bc28a 100644 (file)
@@ -5,12 +5,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
-
+#include <features.h>
 #include <signal.h>
 #include <time.h>
 
@@ -26,7 +21,7 @@ struct aiocb {
        struct sigevent aio_sigevent;
        void *__td;
        int __lock[2];
-       int __err;
+       volatile int __err;
        ssize_t __ret;
        off_t aio_offset;
        void *__next, *__prev;