Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/common/acl Don't define acl_alloc a...



details:   https://anonhg.NetBSD.org/src/rev/ea26b53fad5b
branches:  trunk
changeset: 763243:ea26b53fad5b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Mar 15 00:48:04 2011 +0000

description:
Don't define acl_alloc and acl_free during kernel builds.
Fixes module build with clang.

diffstat:

 external/cddl/osnet/dist/common/acl/acl_common.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 270f53817c53 -r ea26b53fad5b external/cddl/osnet/dist/common/acl/acl_common.c
--- a/external/cddl/osnet/dist/common/acl/acl_common.c  Mon Mar 14 23:02:16 2011 +0000
+++ b/external/cddl/osnet/dist/common/acl/acl_common.c  Tue Mar 15 00:48:04 2011 +0000
@@ -423,6 +423,7 @@
 #endif
 }
 
+#if !defined(_KERNEL)
 acl_t *
 acl_alloc(enum acl_type type)
 {
@@ -468,6 +469,7 @@
 
        cacl_free(aclp, sizeof (acl_t));
 }
+#endif
 
 static uint32_t
 access_mask_set(int haswriteperm, int hasreadperm, int isowner, int isallow)



Home | Main Index | Thread Index | Old Index