X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Flargefile.c;h=b71a77f4051f5c295bc0daebbbd5a9cd90fa3b60;hb=c8617f57d0413beb2890e94dabe227cef9c5ddad;hp=bd4cbc12f179f8073dce378ef72b7ab45ad0f192;hpb=46e428110e302636b345928f6f052b8a282c64fa;p=sbcl.git diff --git a/src/runtime/largefile.c b/src/runtime/largefile.c index bd4cbc1..b71a77f 100644 --- a/src/runtime/largefile.c +++ b/src/runtime/largefile.c @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -42,7 +43,7 @@ ftruncate_largefile(int fd, off_t length) { void* mmap_largefile(void *start, size_t length, int prot, int flags, int fd, off_t offset) { - mmap(start, length, prot, flags, fd, offset); + return mmap(start, length, prot, flags, fd, offset); } int @@ -60,4 +61,9 @@ lstat_largefile(const char *file_name, struct stat *buf) { return lstat(file_name, buf); } +struct dirent64 * +readdir_largefile(DIR *dir) { + return readdir64(dir); +} + #endif