Use swap16/32/64 on OpenBSD.
authorKurt Miller <bsdkurt@gmail.com>
Tue, 28 Jan 2020 20:52:51 +0000 (15:52 -0500)
committerKurt Miller <bsdkurt@gmail.com>
Tue, 28 Jan 2020 20:52:51 +0000 (15:52 -0500)
os/os-openbsd.h

index 085a6f2..994bf07 100644 (file)
@@ -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)
 {