summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 23:47:02 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 23:47:02 +0000
commitc63ad1b69859653d67d4711b700015860680efff (patch)
tree522c988ec5d10cb553e6b149d3b5c53d959b32bf /source/smbwrapper
parent8f95ee8fc32d74f20cca489ecd3f7e34e773db2f (diff)
downloadsamba-c63ad1b69859653d67d4711b700015860680efff.tar.gz
samba-c63ad1b69859653d67d4711b700015860680efff.tar.xz
samba-c63ad1b69859653d67d4711b700015860680efff.zip
we need to use __readdir() in preference to SYS_readdir for systems
that use getdents.
Diffstat (limited to 'source/smbwrapper')
-rw-r--r--source/smbwrapper/realcalls.h4
-rw-r--r--source/smbwrapper/wrapped.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/source/smbwrapper/realcalls.h b/source/smbwrapper/realcalls.h
index 2267d21a734..b55ae3b5513 100644
--- a/source/smbwrapper/realcalls.h
+++ b/source/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/source/smbwrapper/wrapped.c b/source/smbwrapper/wrapped.c
index a6e35563da6..502a2a9113b 100644
--- a/source/smbwrapper/wrapped.c
+++ b/source/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)) {