summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-12-14 07:22:03 +0000
committerRoland McGrath <roland@redhat.com>1995-12-14 07:22:03 +0000
commitb8db661c24752b60795e5e999368a6f0ac263a71 (patch)
treefad3141b06badf8435a98db3e57d3a73041bb1e1 /dir.c
parenta54c552d39714adad23424180ac1e0e3206e7c29 (diff)
downloadgunmake-b8db661c24752b60795e5e999368a6f0ac263a71.tar.gz
(dir_setup_glob): Don't use lstat; glob never calls it anyway.
Avoid & before function names to silence bogus sunos4 compiler.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/dir.c b/dir.c
index f4019da..30d6752 100644
--- a/dir.c
+++ b/dir.c
@@ -638,14 +638,13 @@ void
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. */
}