From e3fd861590dd27cc643c2d8d0cb5a5651c84d9ac Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Oct 1998 16:34:57 +0000 Subject: drat. on Linux 2.0 libc detects the lack of getdents in the kernel and used opendir() etc. so we need to implement those ... it would be needed for a port to others OSes anyway I suppose. --- source/smbwrapper/realcalls.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/smbwrapper/realcalls.h') diff --git a/source/smbwrapper/realcalls.h b/source/smbwrapper/realcalls.h index 53f110fe4ab..a5eb046962a 100644 --- a/source/smbwrapper/realcalls.h +++ b/source/smbwrapper/realcalls.h @@ -21,9 +21,14 @@ #ifdef linux struct dirent *__libc_readdir(DIR * dir); -#define real_readdir(dir) (__libc_readdir(dirp)) +#define real_readdir(dir) (__libc_readdir(dir)) +#define real_opendir(fn) (__libc_opendir(fn)) +#define real_telldir(dir) (__libc_telldir(dir)) +#define real_closedir(dir) (__libc_closedir(dir)) +#define real_seekdir(dir, ofs) (__libc_seekdir(dir, ofs)) #else #define real_readdir(dirp) ((struct dirent *)syscall(SYS_readdir,(dirp))) +#define real_opendir(fn) ((DIR *)syscall(SYS_opendir,(fn))) /* if needed define SYS_readdir so that readdir gets compiled */ #endif -- cgit