From 2f2631878427c98ed306ec34f1c9f657faa70c5c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 15 Mar 2002 10:12:31 +0000 Subject: * 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. --- winsup/cygwin/include/glob.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'winsup/cygwin/include/glob.h') diff --git a/winsup/cygwin/include/glob.h b/winsup/cygwin/include/glob.h index e6e648f11..6a393f004 100644 --- a/winsup/cygwin/include/glob.h +++ b/winsup/cygwin/include/glob.h @@ -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. */ -- cgit v1.2.3