diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 9050ef535f..4fb0758521 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