projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support for Mac OS 10.6.2
[fio.git]
/
helpers.c
diff --git
a/helpers.c
b/helpers.c
index f314ebb96ce7aa4c43302ad5f0e03dbd46ae83fb..9c76d305ba51ba6b35fdd8a6bfd6816b417464c7 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->ts_sec = tv.tv_sec;
+ ts->ts_nsec = tv.tv_usec * 1000;
+
+ return ret;
+}