mirror of
https://github.com/mirror/make.git
synced 2025-03-29 13:31:09 +08:00
(dir_setup_glob): Don't use lstat; glob never calls it anyway.
Avoid & before function names to silence bogus sunos4 compiler.
This commit is contained in:
parent
a54c552d39
commit
b8db661c24
17
dir.c
17
dir.c
@ -638,14 +638,13 @@ void
|
|||||||
dir_setup_glob (gl)
|
dir_setup_glob (gl)
|
||||||
glob_t *gl;
|
glob_t *gl;
|
||||||
{
|
{
|
||||||
extern int lstat (), stat ();
|
extern int stat ();
|
||||||
|
|
||||||
#ifdef HAVE_LSTAT
|
/* Bogus sunos4 compiler complains (!) about & before functions. */
|
||||||
#define lstat stat
|
gl->gl_opendir = open_dirstream;
|
||||||
#endif
|
gl->gl_readdir = read_dirstream;
|
||||||
gl->gl_opendir = &open_dirstream;
|
gl->gl_closedir = free;
|
||||||
gl->gl_readdir = &read_dirstream;
|
gl->gl_stat = stat;
|
||||||
gl->gl_closedir = &free;
|
/* We don't bother setting gl_lstat, since glob never calls it.
|
||||||
gl->gl_lstat = &lstat;
|
The slot is only there for compatibility with 4.4 BSD. */
|
||||||
gl->gl_stat = &stat;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user