X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-openbsd.h;h=43a649d447bcaeaa3d72f6cdd4dcd58194bd4393;hb=38b253f3b6c6c975aa8a5660ab19fa44a7804297;hp=675bf892d78ab556d178c8dff51e482e8b4267ed;hpb=dad0ea54b595ad656aca4087014afb438c7d44f0;p=fio.git diff --git a/os/os-openbsd.h b/os/os-openbsd.h index 675bf892..43a649d4 100644 --- a/os/os-openbsd.h +++ b/os/os-openbsd.h @@ -11,23 +11,20 @@ #include #include #include -/* XXX hack to avoid conflicts between rbtree.h and */ #include + +/* XXX hack to avoid conflicts between rbtree.h and */ #undef RB_BLACK #undef RB_RED #undef RB_ROOT #include "../file.h" -#undef FIO_HAVE_ODIRECT -#define FIO_USE_GENERIC_RAND #define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_FS_STAT #define FIO_HAVE_GETTID #define FIO_HAVE_SHM_ATTACH_REMOVED -#undef FIO_HAVE_CPU_AFFINITY /* doesn't exist */ - #define OS_MAP_ANON MAP_ANON #ifndef PTHREAD_STACK_MIN @@ -68,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) {