summaryrefslogtreecommitdiff
path: root/os/os-netbsd.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-05-22 17:12:55 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-22 17:12:55 -0600
commitde5ed0e4d398bc9d4576f9b2b82d7686989c27e1 (patch)
tree2308beb179774d659e27095db6eebad3f581a376 /os/os-netbsd.h
parenta7760ecdb13394819b719f3f8181cc74c3d4affa (diff)
downloadfio-de5ed0e4d398bc9d4576f9b2b82d7686989c27e1.tar.gz
fio-de5ed0e4d398bc9d4576f9b2b82d7686989c27e1.tar.bz2
configure: add gettid() test
Apparently some newer glibcs now have it, decades after the fact. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/os-netbsd.h')
-rw-r--r--os/os-netbsd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/os-netbsd.h b/os/os-netbsd.h
index c06261d4..88fb3ef1 100644
--- a/os/os-netbsd.h
+++ b/os/os-netbsd.h
@@ -65,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) _lwp_self();
}
+#endif
static inline unsigned long long get_fs_free_size(const char *path)
{