X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-openbsd.h;h=43a649d447bcaeaa3d72f6cdd4dcd58194bd4393;hb=07a2919d7a86607d42f5fb69f1f0ba98097d4d98;hp=670892b44e2bc93dac3de3e4357cbcf0966d6087;hpb=3cdc4fb008457c16edbfd8101ba57d45e53a5d14;p=fio.git diff --git a/os/os-openbsd.h b/os/os-openbsd.h index 670892b4..43a649d4 100644 --- a/os/os-openbsd.h +++ b/os/os-openbsd.h @@ -9,24 +9,22 @@ #include #include #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 /* XXX notyet */ - #define OS_MAP_ANON MAP_ANON #ifndef PTHREAD_STACK_MIN @@ -67,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) {