* lib/lchmod.c (lchmod): Use /proc on Cygwin.
+2020-07-23 Bruno Haible <bruno@clisp.org>
+
+ lchmod: Use /proc on Cygwin.
+ * lib/lchmod.c (lchmod): Use /proc on Cygwin.
+
2020-07-23 Ken Brown <kbrown@cornell.edu>
+ fchmodat: Use /proc on Cygwin
* lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
2020-07-21 Bruno Haible <bruno@clisp.org>
return -1;
}
-# if defined __linux__ || defined __ANDROID__
+# if defined __linux__ || defined __ANDROID__ || defined __CYGWIN__
static char const fmt[] = "/proc/self/fd/%d";
char buf[sizeof fmt - sizeof "%d" + INT_BUFSIZE_BOUND (int)];
sprintf (buf, fmt, fd);