]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/linux-26-headers/include/linux/aio_abi.h
update
[l4.git] / l4 / pkg / linux-26-headers / include / linux / aio_abi.h
index 9e017293131542df17e57917e11d9809e6f4e49a..bb2554f7fbd12a677015d48703ccf681357e84c6 100644 (file)
 #ifndef __LINUX__AIO_ABI_H
 #define __LINUX__AIO_ABI_H
 
+#include <linux/types.h>
 #include <asm/byteorder.h>
 
-typedef unsigned long  aio_context_t;
+typedef __kernel_ulong_t aio_context_t;
 
 enum {
        IOCB_CMD_PREAD = 0,
@@ -61,9 +62,9 @@ struct io_event {
        __s64           res2;           /* secondary result */
 };
 
-#if defined(__LITTLE_ENDIAN)
+#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN)
 #define PADDED(x,y)    x, y
-#elif defined(__BIG_ENDIAN)
+#elif defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN)
 #define PADDED(x,y)    y, x
 #else
 #error edit for your odd byteorder.