]> Savannah Git Hosting - gnulib.git/commitdiff
getcwd: port to AIX
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Dec 2020 00:51:58 +0000 (16:51 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Dec 2020 01:34:14 +0000 (17:34 -0800)
* lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
in case our sys/stat.h #defined a function macro with the same name.

ChangeLog
lib/getcwd.c

index 2ebf31995ce1ae4da7ee17a3b5f51393fdc49fd5..7162110c9f0473fe56cfc58abf490708728ead1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
index 9b74b7b0c7cbc8592079aaff0f7852ed8e558048..418c1e5b90b93c96483d80dd12321e22a9a3e718 100644 (file)
@@ -92,6 +92,7 @@
 # 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