Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
<https://lists.gnu.org/archive/html/m4-discuss/2021-08/msg00000.html>
via Eric Blake.
* lib/canonicalize-lgpl.c (__stat): Remove macro.
(file_accessible): Use 'stat' instead.
+2021-08-08 Bruno Haible <bruno@clisp.org>
+
+ canonicalize-lgpl: Fix conflict with z/OS <sys/stat.h>.
+ Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
+ <https://lists.gnu.org/archive/html/m4-discuss/2021-08/msg00000.html>
+ via Eric Blake.
+ * lib/canonicalize-lgpl.c (__stat): Remove macro.
+ (file_accessible): Use 'stat' instead.
+
2021-08-08 Bruno Haible <bruno@clisp.org>
ptsname_r: Drop sync with glibc.
# define __pathconf pathconf
# define __rawmemchr rawmemchr
# define __readlink readlink
-# define __stat stat
# if IN_RELOCWRAPPER
/* When building the relocatable program wrapper, use the system's memmove
function, not the gnulib override, otherwise we would get a link error.
return __faccessat (AT_FDCWD, file, F_OK, AT_EACCESS) == 0;
# else
struct stat st;
- return __stat (file, &st) == 0 || errno == EOVERFLOW;
+ return stat (file, &st) == 0 || errno == EOVERFLOW;
# endif
}