diff options
author | Jens Axboe <axboe@kernel.dk> | 2013-01-23 15:42:16 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-01-23 15:42:16 -0700 |
commit | 0dcebdf4a70ef0d8144b8fcba763ae87e7fc74b5 (patch) | |
tree | ded78ffef7b51af0a945a9d5345fc2f41bdf3d38 /lib/bswap.h | |
parent | 37adbfc4e189873d1d02c145b81c779971ef5337 (diff) | |
download | fio-0dcebdf4a70ef0d8144b8fcba763ae87e7fc74b5.tar.gz fio-0dcebdf4a70ef0d8144b8fcba763ae87e7fc74b5.tar.bz2 |
configure: add endian check
Will remove guesswork and manual hacking in the OS headers.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/bswap.h')
-rw-r--r-- | lib/bswap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bswap.h b/lib/bswap.h index 30fcac54..1fe51947 100644 --- a/lib/bswap.h +++ b/lib/bswap.h @@ -3,7 +3,7 @@ #include <inttypes.h> -#if __BYTE_ORDER == __LITTLE_ENDIAN +#ifdef CONFIG_LITTLE_ENDIAN static inline uint32_t __be32_to_cpu(uint32_t val) { uint32_t c1, c2, c3, c4; |