diff options
author | Matthew Macy <[email protected]> | 2019-10-10 09:47:06 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-10 09:47:06 -0700 |
commit | e4f5fa12290016b2f1fd6a5b4c7e5733c788c863 (patch) | |
tree | 51a33853a1161198daf1195ec09da33e9a905392 /include/os | |
parent | c5858ff9462719be60b2ffb0065dd01508a63162 (diff) |
Fix strdup conflict on other platforms
In the FreeBSD kernel the strdup signature is:
```
char *strdup(const char *__restrict, struct malloc_type *);
```
It's unfortunate that the developers have chosen to change
the signature of libc functions - but it's what I have to
deal with.
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9433
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/linux/spl/sys/kmem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/os/linux/spl/sys/kmem.h b/include/os/linux/spl/sys/kmem.h index 72d3a7765..986c7d244 100644 --- a/include/os/linux/spl/sys/kmem.h +++ b/include/os/linux/spl/sys/kmem.h @@ -32,8 +32,8 @@ extern int kmem_debugging(void); extern char *kmem_vasprintf(const char *fmt, va_list ap); extern char *kmem_asprintf(const char *fmt, ...); -extern char *strdup(const char *str); -extern void strfree(char *str); +extern char *kmem_strdup(const char *str); +extern void kmem_strfree(char *str); /* * Memory allocation interfaces |