mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
FreeBSD: Fix stable/12 after AT_BENEATH removal
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11827
This commit is contained in:
parent
fe6babced2
commit
02aaf11fc7
@ -295,14 +295,12 @@ zfs_file_unlink(const char *fnamep)
|
||||
|
||||
#if __FreeBSD_version >= 1300018
|
||||
rc = kern_funlinkat(curthread, AT_FDCWD, fnamep, FD_NONE, seg, 0, 0);
|
||||
#else
|
||||
#ifdef AT_BENEATH
|
||||
#elif __FreeBSD_version >= 1202504 || defined(AT_BENEATH)
|
||||
rc = kern_unlinkat(curthread, AT_FDCWD, __DECONST(char *, fnamep),
|
||||
seg, 0, 0);
|
||||
#else
|
||||
rc = kern_unlinkat(curthread, AT_FDCWD, __DECONST(char *, fnamep),
|
||||
seg, 0);
|
||||
#endif
|
||||
#endif
|
||||
return (SET_ERROR(rc));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user