mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
7b4d0cde3f
commit
43db9a73a2
@ -55,7 +55,15 @@
|
|||||||
|
|
||||||
#include <afsconfig.h>
|
#include <afsconfig.h>
|
||||||
#include <afs/param.h>
|
#include <afs/param.h>
|
||||||
#include <roken.h>
|
/* 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 <roken.h>
|
||||||
|
# define KERNEL
|
||||||
|
#else
|
||||||
|
# include <roken.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VFS 1
|
#define VFS 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user