X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-openbsd.h;h=43a649d447bcaeaa3d72f6cdd4dcd58194bd4393;hp=b4c02c9bf236803227cdb053f35975bb2b6f26d6;hb=de5ed0e4d398bc9d4576f9b2b82d7686989c27e1;hpb=63463983ce10e9678c5ad309608630eea873b4df diff --git a/os/os-openbsd.h b/os/os-openbsd.h index b4c02c9b..43a649d4 100644 --- a/os/os-openbsd.h +++ b/os/os-openbsd.h @@ -20,7 +20,6 @@ #include "../file.h" -#define FIO_USE_GENERIC_RAND #define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_FS_STAT #define FIO_HAVE_GETTID @@ -66,10 +65,12 @@ static inline unsigned long long os_phys_mem(void) return mem; } +#ifndef CONFIG_HAVE_GETTID static inline int gettid(void) { return (int)(intptr_t) pthread_self(); } +#endif static inline unsigned long long get_fs_free_size(const char *path) {