summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index b516ef2752..5289585ef0 100644
--- a/dir.c
+++ b/dir.c
@@ -63,8 +63,8 @@ char *strchr _((char*,char));
#include "util.h"
-#ifndef HAVE_LSTAT
-#define lstat(path,st) stat(path,st)
+#if !defined HAVE_LSTAT && !defined lstat
+#define lstat stat
#endif
#define FNM_NOESCAPE 0x01