diff options
Diffstat (limited to 'source3/smbwrapper/wrapped.c')
-rw-r--r-- | source3/smbwrapper/wrapped.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c index 291da8301f..427075f1fe 100644 --- a/source3/smbwrapper/wrapped.c +++ b/source3/smbwrapper/wrapped.c @@ -23,7 +23,12 @@ /* we don't want prototypes for this code */ #define NO_PROTO -#include "wrapper.h" +#include "includes.h" + +#ifdef LINUX +#include "kernel_stat.h" +#endif +#include "realcalls.h" int open(const char *name, int flags, mode_t mode) { @@ -203,7 +208,7 @@ -#ifdef HAVE_GETDENTS +#ifdef real_getdents int getdents(int fd, struct dirent *dirp, unsigned int count) { if (smbw_fd(fd)) { |