From c3f8ec2942f0ccf54125c67442168cb983366987 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 4 Jul 2006 10:59:15 +0000 Subject: gcc 4.1.x is apparently miscompiling gnu glob on mips. This ports the latest and massivly bloated greatest from glibc. And fixes things so the gnu glob interface is no longer the default. --- libc/misc/glob/glob64.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libc/misc/glob/glob64.c') diff --git a/libc/misc/glob/glob64.c b/libc/misc/glob/glob64.c index d84f874d5..bc2ba682f 100644 --- a/libc/misc/glob/glob64.c +++ b/libc/misc/glob/glob64.c @@ -11,6 +11,8 @@ #include #define dirent dirent64 +#define __readdir(dirp) readdir64 (dirp) +#define __readdir64(dirp) readdir64 (dirp) #define glob_t glob64_t #define glob(pattern, flags, errfunc, pglob) \ @@ -19,8 +21,10 @@ #undef stat #define stat stat64 -#define lstat lstat64 +#undef __stat +#define __stat(file, buf) stat64(file, buf) + +#define COMPILE_GLOB64 1 -#define __GLOB64 1 - #include "glob.c" + -- cgit v1.2.3