X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-mac.h;h=0d97f6b984c60196cbc66a11737a612bc815e1e9;hb=44f668d7ba3d82c1218951b8c9ed058bedb89e17;hp=0b9c870761df96677a90a80f183a1c850fec2a36;hpb=46bfd4e5170ec950c1eb2e27c2ae67fa9b84ee12;p=fio.git diff --git a/os/os-mac.h b/os/os-mac.h index 0b9c8707..0d97f6b9 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -90,16 +90,12 @@ static inline unsigned long long os_phys_mem(void) return mem; } +#ifndef CONFIG_HAVE_GETTID static inline int gettid(void) { return mach_thread_self(); } - -/* - * For some reason, there's no header definition for fdatasync(), even - * if it exists. - */ -extern int fdatasync(int fd); +#endif static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len) {