projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: stop enabling fdatasync on OSX
[fio.git]
/
os
/
os-mac.h
diff --git
a/os/os-mac.h
b/os/os-mac.h
index 92a60ee98766f0fc1526cd440e38a687e6cc02ae..0d97f6b984c60196cbc66a11737a612bc815e1e9 100644
(file)
--- a/
os/os-mac.h
+++ b/
os/os-mac.h
@@
-16,7
+16,6
@@
#include "../file.h"
#include "../file.h"
-#define FIO_USE_GENERIC_RAND
#define FIO_USE_GENERIC_INIT_RANDOM_STATE
#define FIO_HAVE_GETTID
#define FIO_HAVE_CHARDEV_SIZE
#define FIO_USE_GENERIC_INIT_RANDOM_STATE
#define FIO_HAVE_GETTID
#define FIO_HAVE_CHARDEV_SIZE
@@
-91,16
+90,12
@@
static inline unsigned long long os_phys_mem(void)
return mem;
}
return mem;
}
+#ifndef CONFIG_HAVE_GETTID
static inline int gettid(void)
{
return mach_thread_self();
}
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)
{
static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len)
{