cddl/compat/opensolaris: fix sha2.h include path

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/lib/libzfs/Makefile: fix sha2 include cflags

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cmd/zfs/zfs_main.c: fix jail.h include

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/contrib/*/arc.c: Fix missing includes

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cpu/x86_64: Missing atomic_{add,subtract}_64 in atomic.h

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/compat/opensolaris/sys/sig.h: Convert mtx_ to lwkt_ locking

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris/kern: Rename 'printf' to 'kprintf'

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris/kern: Rename malloc/free to kmalloc/kfree

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/contrib/*/zfs_vnops.c: No need for vm_page_{lock,unlock}

In DragonflyBSD there is no need for vm_page_{lock,unlock}() calls.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sysmacros.h redefines howmany() that is already in param.h

This could be done better..

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
include/rpc/xdr.h: Partial sync with FreeBSD

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/contrib/*/thread.h: Internalise thread_t as it conflicts

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/*/vnode.h: Implement rename/remove syscalls

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
header fixes

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
fix missing define

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
fix missing accmode_t typedef

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
don't build ZFS DEBUG

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris: Stub out (WIP)

Stub out function so we can continue to build..

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>