mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
Changes to make openzfs build within FreeBSD buildworld
A collection of header changes to enable FreeBSD to build with vendored OpenZFS. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10635
This commit is contained in:
@@ -202,11 +202,14 @@ typedef int enum_t;
|
||||
#define ENODATA EINVAL
|
||||
|
||||
|
||||
#define __XSI_VISIBLE 1000
|
||||
#define __BSD_VISIBLE 1
|
||||
#ifndef IN_BASE
|
||||
#define __POSIX_VISIBLE 201808
|
||||
#define __XSI_VISIBLE 1000
|
||||
#endif
|
||||
#define ARRAY_SIZE(a) (sizeof (a) / sizeof (a[0]))
|
||||
#define open64 open
|
||||
#define mmap64 mmap
|
||||
#define pwrite64 pwrite
|
||||
#define ftruncate64 ftruncate
|
||||
#define lseek64 lseek
|
||||
@@ -257,7 +260,9 @@ typedef int enum_t;
|
||||
|
||||
#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
|
||||
#define RLIM64_INFINITY RLIM_INFINITY
|
||||
#ifndef HAVE_ERESTART
|
||||
#define ERESTART EAGAIN
|
||||
#endif
|
||||
#define ABS(a) ((a) < 0 ? -(a) : (a))
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user