From 6ad2cc0275cd1074316d6bc70cd8758d25f94467 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Tue, 26 Mar 2013 17:42:38 -0400 Subject: [PATCH] Fix DARWIN build with clang In 1d8937b86050 we added a function call to kauth_cred_unref in the DARWIN100 case (replacing a macro), but added the inclusion of sys/kauth.h only when using versions older than DARWIN80. On DARWIN100 and above, clang detects that the now-implicit function declaration is in conflict with the actual prototype, which is included later through afs/sysincludes.h when compiling the kernel rx code. Since including sys/kauth.h seems to have been harmless for old versions, just include it always. Change-Id: I4b65f5405a3de918091f8c25440801d0ce9f90b8 Reviewed-on: http://gerrit.openafs.org/9676 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/afs/DARWIN/osi_machdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/DARWIN/osi_machdep.h b/src/afs/DARWIN/osi_machdep.h index ae00c49..f513020 100644 --- a/src/afs/DARWIN/osi_machdep.h +++ b/src/afs/DARWIN/osi_machdep.h @@ -33,8 +33,8 @@ typedef unsigned short etap_event_t; #include #include #include -#include #endif +#include #include #ifdef AFS_DARWIN80_ENV -- 1.9.4