From 8f6df9b587967f54a9594923a6fa53b60c207afa Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 21 Feb 1999 16:36:07 +0000 Subject: [PATCH] (lstat) [!S_ISLNK]: Use stat instead of lstat. --- src/fileio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index fd7322d7af4..7a8a5c92322 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -149,6 +149,10 @@ extern char *strerror (); #define O_RDONLY 0 #endif +#ifndef S_ISLNK +# define lstat stat +#endif + #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) -- 2.39.2