From: Steve Peters Date: Wed, 16 Aug 2006 17:44:44 +0000 (+0000) Subject: Cast needed to compile bsd_glob.c with C++ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7ec40f37ce4eb8552b6149cba97968e51cedac3a;p=p5sagit%2Fp5-mst-13.2.git Cast needed to compile bsd_glob.c with C++ p4raw-id: //depot/perl@28730 --- diff --git a/ext/File/Glob/bsd_glob.c b/ext/File/Glob/bsd_glob.c index c1dbd2c..4d1e7f0 100644 --- a/ext/File/Glob/bsd_glob.c +++ b/ext/File/Glob/bsd_glob.c @@ -935,7 +935,7 @@ glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, if (pglob->gl_flags & GLOB_ALTDIRFUNC) readdirfunc = (Direntry_t *(*)(DIR *))pglob->gl_readdir; else - readdirfunc = my_readdir; + readdirfunc = (Direntry_t *(*)(DIR *))my_readdir; while ((dp = (*readdirfunc)(dirp))) { register U8 *sc; register Char *dc;