summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKurt Miller <bsdkurt@gmail.com>2020-01-28 15:52:51 -0500
committerKurt Miller <bsdkurt@gmail.com>2020-01-28 15:52:51 -0500
commit245f88e6d0804681fdff17d75d239d12c605068e (patch)
treec7fd58fdbb6baa1669f21edfd2dd2b9e810ba481 /os
parent8178434ccba8e2d06684ce0c730b0eda571c5280 (diff)
downloadfio-245f88e6d0804681fdff17d75d239d12c605068e.tar.gz
fio-245f88e6d0804681fdff17d75d239d12c605068e.tar.bz2
Use swap16/32/64 on OpenBSD.
Diffstat (limited to 'os')
-rw-r--r--os/os-openbsd.h6
1 files changed, 3 insertions, 3 deletions
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)
{