X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-dragonfly.h;h=3c460ae2f33105574769450cba7fe817362c66a6;hb=07a2919d7a86607d42f5fb69f1f0ba98097d4d98;hp=e80ad8cd906ea72b4bde0b66b7bc7f2a462487ba;hpb=c479640d6208236744f0562b1e79535eec290e2b;p=fio.git diff --git a/os/os-dragonfly.h b/os/os-dragonfly.h index e80ad8cd..3c460ae2 100644 --- a/os/os-dragonfly.h +++ b/os/os-dragonfly.h @@ -25,7 +25,6 @@ #include "../lib/types.h" #define FIO_HAVE_ODIRECT -#define FIO_USE_GENERIC_RAND #define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_FS_STAT #define FIO_HAVE_TRIM @@ -203,10 +202,12 @@ static inline unsigned long long os_phys_mem(void) return mem; } +#ifndef CONFIG_HAVE_GETTID static inline int gettid(void) { return (int) lwp_gettid(); } +#endif static inline unsigned long long get_fs_free_size(const char *path) {