* lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
in case our sys/stat.h #defined a function macro with the same name.
2020-12-13 Paul Eggert <eggert@cs.ucla.edu>
+ getcwd: port to AIX
+ * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
+ in case our sys/stat.h #defined a function macro with the same name.
+
readlink, readlinkat: add ERANGE portability
Fix some portability issues with Gnulib's readlink and readlinkat,
notably mostly working around the ERANGE problem in AIX and HP-UX.
# define GETCWD_RETURN_TYPE char *
# define __close_nocancel_nostatus close
# define __getcwd_generic rpl_getcwd
+# undef stat64
# define stat64 stat
# define __fstat64 fstat
# define __fstatat64 fstatat