]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Fix DARWIN build with clang
authorBen Kaduk <kaduk@mit.edu>
Tue, 26 Mar 2013 21:42:38 +0000 (17:42 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 27 Mar 2013 12:54:05 +0000 (05:54 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/afs/DARWIN/osi_machdep.h

index ae00c4903cc3334ec9d8e9bf0f630fd52f00cfd6..f51302086036a97f59375ef02429adcd334aa9dd 100644 (file)
@@ -33,8 +33,8 @@ typedef unsigned short etap_event_t;
 #include <sys/lock.h>
 #include <sys/user.h>
 #include <sys/vnode.h>
-#include <sys/kauth.h>
 #endif
+#include <sys/kauth.h>
 #include <kern/thread.h>
 
 #ifdef AFS_DARWIN80_ENV