* 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:
		| @@ -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. */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user