summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/glob.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-03-15 10:12:31 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-03-15 10:12:31 +0000
commit2f2631878427c98ed306ec34f1c9f657faa70c5c (patch)
tree818e64586fe9f8823074b5bc0da6e1e1279c5b47 /winsup/cygwin/include/glob.h
parent4af6d4a9ab85eb27ac4fb41225e5b6edea2d427c (diff)
downloadcygnal-2f2631878427c98ed306ec34f1c9f657faa70c5c.tar.gz
cygnal-2f2631878427c98ed306ec34f1c9f657faa70c5c.tar.bz2
cygnal-2f2631878427c98ed306ec34f1c9f657faa70c5c.zip
* 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.
Diffstat (limited to 'winsup/cygwin/include/glob.h')
-rw-r--r--winsup/cygwin/include/glob.h5
1 files changed, 5 insertions, 0 deletions
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
@@ -66,9 +66,14 @@ typedef struct {
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. */