diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-10 21:38:39 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-10 21:38:39 +0000 |
commit | ee4766827a6e19a97fe3cb423ea3220039240c4f (patch) | |
tree | f30b7f25ca9198ce41da73f780b286aaf91774b9 /modules | |
parent | 51f443a0741b5a74ecb078ab16d3eac489c90fd1 (diff) |
Remap gethrestime() with #define to new symbol and export that new
symbol to avoid direct use of GPL only symbol.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@36 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'modules')
-rw-r--r-- | modules/spl/Makefile.in | 1 | ||||
-rw-r--r-- | modules/spl/spl-time.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/spl/Makefile.in b/modules/spl/Makefile.in index 1d152e61b..78ebdfa0c 100644 --- a/modules/spl/Makefile.in +++ b/modules/spl/Makefile.in @@ -15,6 +15,7 @@ spl-objs += spl-taskq.o spl-objs += spl-rwlock.o spl-objs += spl-vnode.o spl-objs += spl-err.o +spl-objs += spl-time.o spl-objs += spl-generic.o splmodule := spl.ko diff --git a/modules/spl/spl-time.c b/modules/spl/spl-time.c new file mode 100644 index 000000000..f0ec4c5a0 --- /dev/null +++ b/modules/spl/spl-time.c @@ -0,0 +1,11 @@ +#include <sys/sysmacros.h> +#include <sys/time.h> +#include "config.h" + +void +__gethrestime(timestruc_t *ts) +{ + getnstimeofday((struct timespec *)ts); +} + +EXPORT_SYMBOL(__gethrestime); |