From 43db9a73a2b34217b35c9d499bf685895a9e1390 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 17 Sep 2012 23:26:12 -0400 Subject: [PATCH] afsd: roken.h includes dirent.h; get valid dirent defines on osx our workaround for #define KERNEL didn't work on OSX because roken.h included dirent.h before we got the chance. cope with it. Change-Id: I5e580aa934cec4e99d62ba105873f71b11326e2f Reviewed-on: http://gerrit.openafs.org/8132 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear --- src/afsd/afsd.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 9050ef5..4fb0758 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -55,7 +55,15 @@ #include #include -#include +/* darwin dirent.h doesn't give us the prototypes we want if KERNEL is + * defined, and roken includes dirent */ +#if defined(UKERNEL) && defined(AFS_USR_DARWIN_ENV) +# undef KERNEL +# include +# define KERNEL +#else +# include +#endif #define VFS 1 -- 1.9.4