1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

we need to use __readdir() in preference to SYS_readdir for systems

that use getdents.
(This used to be commit c63ad1b69859653d67d4711b700015860680efff)
This commit is contained in:
Andrew Tridgell 1998-10-04 23:47:02 +00:00
parent 06eaf71e43
commit dde4b88a02
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -544,7 +544,6 @@ __asm__(".globl _write; _write = write");
return real_opendir(name);
}
struct dirent *readdir(DIR *dir)
{
if (smbw_dirp(dir)) {