diff --git a/sys/cddl/contrib/opensolaris/common/acl/acl_common.c b/sys/cddl/contrib/opensolaris/common/acl/acl_common.c index e6b678079635..8d0cc85f341c 100644 --- a/sys/cddl/contrib/opensolaris/common/acl/acl_common.c +++ b/sys/cddl/contrib/opensolaris/common/acl/acl_common.c @@ -424,6 +424,7 @@ cacl_free(void *ptr, size_t size) #endif } +#ifndef __FreeBSD__ acl_t * acl_alloc(enum acl_type type) { @@ -469,6 +470,7 @@ acl_free(acl_t *aclp) cacl_free(aclp, sizeof (acl_t)); } +#endif static uint32_t access_mask_set(int haswriteperm, int hasreadperm, int isowner, int isallow) diff --git a/sys/cddl/contrib/opensolaris/common/atomic/amd64/atomic.S b/sys/cddl/contrib/opensolaris/common/atomic/amd64/opensolaris_atomic.S similarity index 100% rename from sys/cddl/contrib/opensolaris/common/atomic/amd64/atomic.S rename to sys/cddl/contrib/opensolaris/common/atomic/amd64/opensolaris_atomic.S diff --git a/sys/cddl/contrib/opensolaris/common/atomic/i386/atomic.S b/sys/cddl/contrib/opensolaris/common/atomic/i386/opensolaris_atomic.S similarity index 100% rename from sys/cddl/contrib/opensolaris/common/atomic/i386/atomic.S rename to sys/cddl/contrib/opensolaris/common/atomic/i386/opensolaris_atomic.S diff --git a/sys/cddl/contrib/opensolaris/common/atomic/ia64/atomic.S b/sys/cddl/contrib/opensolaris/common/atomic/ia64/opensolaris_atomic.S similarity index 100% rename from sys/cddl/contrib/opensolaris/common/atomic/ia64/atomic.S rename to sys/cddl/contrib/opensolaris/common/atomic/ia64/opensolaris_atomic.S diff --git a/sys/cddl/contrib/opensolaris/common/atomic/sparc64/atomic.S b/sys/cddl/contrib/opensolaris/common/atomic/sparc64/opensolaris_atomic.S similarity index 100% rename from sys/cddl/contrib/opensolaris/common/atomic/sparc64/atomic.S rename to sys/cddl/contrib/opensolaris/common/atomic/sparc64/opensolaris_atomic.S diff --git a/sys/cddl/contrib/opensolaris/uts/common/zmod/crc32.c b/sys/cddl/contrib/opensolaris/uts/common/zmod/opensolaris_crc32.c similarity index 100% rename from sys/cddl/contrib/opensolaris/uts/common/zmod/crc32.c rename to sys/cddl/contrib/opensolaris/uts/common/zmod/opensolaris_crc32.c diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index 7ac0237d59ee..4f399a8f3b32 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -28,7 +28,7 @@ SRCS+= opensolaris_zone.c .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" .PATH: ${SUNW}/common/atomic/${MACHINE_ARCH} -SRCS+= atomic.S +SRCS+= opensolaris_atomic.S .else .PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern SRCS+= opensolaris_atomic.c @@ -51,7 +51,7 @@ SRCS+= xdr_mem.c .PATH: ${SUNW}/uts/common/zmod SRCS+= adler32.c -SRCS+= crc32.c +SRCS+= opensolaris_crc32.c SRCS+= deflate.c SRCS+= inffast.c SRCS+= inflate.c