diff options
author | Brian Behlendorf <[email protected]> | 2010-06-11 14:48:18 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-06-11 15:57:25 -0700 |
commit | b868e22f05fd85be16afee800207f72b8e310d32 (patch) | |
tree | da050e86b8d79b4de1eac65640aa1506b06d51ea /spl_config.h.in | |
parent | bb1bb2c4c49659b47d65beb8ac24dc2c86989553 (diff) |
Add kmem_asprintf(), strfree(), strdup(), and minor cleanup.
This patch adds three missing Solaris functions: kmem_asprintf(), strfree(),
and strdup(). They are all implemented as a thin layer which just calls
their Linux counterparts. As part of this an autoconf check for kvasprintf
was added because it does not appear in older kernels. If the kernel does
not provide it then spl-generic implements it.
Additionally the dead DEBUG_KMEM_UNIMPLEMENTED code was removed to clean
things up and make the kmem.h a little more readable.
Diffstat (limited to 'spl_config.h.in')
-rw-r--r-- | spl_config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in index ac608d44f..fdef876b3 100644 --- a/spl_config.h.in +++ b/spl_config.h.in @@ -102,6 +102,9 @@ /* kmalloc_node() is available */ #undef HAVE_KMALLOC_NODE +/* kvasprintf() is available */ +#undef HAVE_KVASPRINTF + /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H |