Avoid & before function names to silence bogus sunos4 compiler.
dir_setup_glob (gl)
glob_t *gl;
{
- extern int lstat (), stat ();
-
-#ifdef HAVE_LSTAT
-#define lstat stat
-#endif
- gl->gl_opendir = &open_dirstream;
- gl->gl_readdir = &read_dirstream;
- gl->gl_closedir = &free;
- gl->gl_lstat = &lstat;
- gl->gl_stat = &stat;
+ extern int stat ();
+
+ /* Bogus sunos4 compiler complains (!) about & before functions. */
+ gl->gl_opendir = open_dirstream;
+ gl->gl_readdir = read_dirstream;
+ gl->gl_closedir = free;
+ gl->gl_stat = stat;
+ /* We don't bother setting gl_lstat, since glob never calls it.
+ The slot is only there for compatibility with 4.4 BSD. */
}