mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
FreeBSD: Reduce divergence from in-tree sources
This includes random small tweaks, primarily a build fixes, required when ZFS is built as part of FreeBSD base. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #15368
This commit is contained in:
committed by
Brian Behlendorf
parent
120d1787d7
commit
f6e6e77ed8
@@ -695,8 +695,10 @@ extern char *kmem_asprintf(const char *fmt, ...);
|
||||
#define kmem_strfree(str) kmem_free((str), strlen(str) + 1)
|
||||
#define kmem_strdup(s) strdup(s)
|
||||
|
||||
#ifndef __cplusplus
|
||||
extern int kmem_scnprintf(char *restrict str, size_t size,
|
||||
const char *restrict fmt, ...);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Hostname information
|
||||
|
||||
Reference in New Issue
Block a user