mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9433
This commit is contained in:
committed by
Brian Behlendorf
parent
c5858ff946
commit
e4f5fa1229
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user