X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-aix.h;h=1870e6e46f9c14676c53394eaadff3383a08d675;hp=ccf3bb2ca280a15bc97078d8a1662e1dd3784066;hb=d79db1222039e906dd49ae290daa59701f4e2385;hpb=a9df7070ea889f7ad439a605cb1ac412f75f511e diff --git a/os/os-aix.h b/os/os-aix.h index ccf3bb2c..1870e6e4 100644 --- a/os/os-aix.h +++ b/os/os-aix.h @@ -1,6 +1,8 @@ #ifndef FIO_OS_AIX_H #define FIO_OS_AIX_H +#define FIO_OS os_aix + #include #include #include @@ -11,6 +13,7 @@ #define FIO_HAVE_POSIXAIO #define FIO_HAVE_ODIRECT #define FIO_USE_GENERIC_RAND +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_CLOCK_MONOTONIC /* @@ -25,10 +28,17 @@ #define OS_MAP_ANON MAP_ANON #define OS_MSG_DONTWAIT 0 -#warning "Assuming big endian on AIX, fix me up" +#if BYTE_ORDER == BIG_ENDIAN #define FIO_BIG_ENDIAN +#else +#define FIO_LITTLE_ENDIAN +#endif + #define FIO_USE_GENERIC_SWAP +#define FIO_OS_HAVE_SOCKLEN_T +#define fio_socklen_t socklen_t + static inline int blockdev_invalidate_cache(struct fio_file *f) { return EINVAL;