mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Refactor ccompile.h to not include system headers
This is a step toward being able to vendor the OpenZFS code in FreeBSD. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10625
This commit is contained in:
@@ -30,9 +30,12 @@
|
||||
#ifndef _COMPAT_OPENSOLARIS_SYS_PARAM_H_
|
||||
#define _COMPAT_OPENSOLARIS_SYS_PARAM_H_
|
||||
|
||||
#include <sys/types.h>
|
||||
#include_next <sys/param.h>
|
||||
|
||||
#define PAGESIZE PAGE_SIZE
|
||||
#define ptob(x) ((uint64_t)(x) << PAGE_SHIFT)
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <sys/systm.h>
|
||||
#include <sys/libkern.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user