* glob.c (stat32_to_STAT): New function.

(g_lstat): Call user space functions always with 32 bit struct stat
	as a workaround.
	(g_stat): Ditto.
	* include/glob.h (struct glob): Don't prototype function pointers
	when compiling Cygwin.
This commit is contained in:
Corinna Vinschen
2002-03-15 10:12:31 +00:00
parent 4af6d4a9ab
commit 2f26318784
3 changed files with 68 additions and 4 deletions

View File

@ -65,10 +65,15 @@ typedef struct {
#ifdef __LIBC12_SOURCE__
int (*gl_lstat) __P((const char *, struct stat12 *));
int (*gl_stat) __P((const char *, struct stat12 *));
#else
#if defined (__INSIDE_CYGWIN__)
int (*gl_lstat) ();
int (*gl_stat) ();
#else
int (*gl_lstat) __P((const char *, struct stat *));
int (*gl_stat) __P((const char *, struct stat *));
#endif
#endif
} glob_t;
#define GLOB_APPEND 0x0001 /* Append to output from previous call. */