123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
- #include <features.h>
- #ifdef __UCLIBC_HAS_LFS__
- #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
- #undef _FILE_OFFSET_BITS
- #define _FILE_OFFSET_BITS 64
- #endif
- #ifndef __USE_LARGEFILE64
- # define __USE_LARGEFILE64 1
- #endif
- /* We absolutely do _NOT_ want interfaces silently
- * renamed under us or very bad things will happen... */
- #ifdef __USE_FILE_OFFSET64
- # undef __USE_FILE_OFFSET64
- #endif
- #include <dirent.h>
- #include <glob.h>
- #include <sys/stat.h>
- #define dirent dirent64
- #define glob_t glob64_t
- #define glob(pattern, flags, errfunc, pglob) \
- glob64 (pattern, flags, errfunc, pglob)
- #define globfree(pglob) globfree64 (pglob)
- #undef stat
- #define stat stat64
- #define lstat lstat64
- #define __GLOB64 1
-
- #include "glob.c"
- #endif
|