summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbwrapper/realcalls.h4
-rw-r--r--source3/smbwrapper/wrapped.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbwrapper/realcalls.h b/source3/smbwrapper/realcalls.h
index 2267d21a73..b55ae3b551 100644
--- a/source3/smbwrapper/realcalls.h
+++ b/source3/smbwrapper/realcalls.h
@@ -43,10 +43,10 @@
#ifdef HAVE__READDIR
#define real_readdir(d) (_readdir(d))
-#elif SYS_readdir
-#define real_readdir(d) (syscall(SYS_readdir,(d)))
#elif HAVE___READDIR
#define real_readdir(d) (__readdir(d))
+#elif SYS_readdir
+#define real_readdir(d) (syscall(SYS_readdir,(d)))
#endif
#ifdef HAVE__CLOSEDIR
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index a6e35563da..502a2a9113 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/smbwrapper/wrapped.c
@@ -544,7 +544,6 @@ __asm__(".globl _write; _write = write");
return real_opendir(name);
}
-
struct dirent *readdir(DIR *dir)
{
if (smbw_dirp(dir)) {