projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some issues with the OSX port
[fio.git]
/
helpers.c
diff --git
a/helpers.c
b/helpers.c
index f314ebb96ce7aa4c43302ad5f0e03dbd46ae83fb..098195c8f0f2a61279e64baa6b5e55c58caea3dd 100644
(file)
--- a/
helpers.c
+++ b/
helpers.c
@@
-24,3
+24,16
@@
int __weak inet_aton(const char *cp, struct in_addr *inp)
{
return 0;
}
+
+int __weak clock_gettime(clockid_t clk_id, struct timespec *ts)
+{
+ struct timeval tv;
+ int ret;
+
+ ret = gettimeofday(&tv, NULL);
+
+ ts->tv_sec = tv.tv_sec;
+ ts->tv_nsec = tv.tv_usec * 1000;
+
+ return ret;
+}