From: Kurt Miller Date: Tue, 28 Jan 2020 20:52:51 +0000 (-0500) Subject: Use swap16/32/64 on OpenBSD. X-Git-Tag: fio-3.18~4^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=245f88e6d0804681fdff17d75d239d12c605068e;p=fio.git Use swap16/32/64 on OpenBSD. --- diff --git a/os/os-openbsd.h b/os/os-openbsd.h index 085a6f2b..994bf078 100644 --- a/os/os-openbsd.h +++ b/os/os-openbsd.h @@ -31,9 +31,9 @@ #define PTHREAD_STACK_MIN 4096 #endif -#define fio_swap16(x) bswap16(x) -#define fio_swap32(x) bswap32(x) -#define fio_swap64(x) bswap64(x) +#define fio_swap16(x) swap16(x) +#define fio_swap32(x) swap32(x) +#define fio_swap64(x) swap64(x) static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes) {