mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Fix build failure on systems without fstatat.
cmake's configure-time #defines (at least the way I use them) are defined to 0 or 1, rather than sometimes not defined at all, so you have to test them with plain #if rather than #ifdef or #if defined. I _thought_ I'd caught all of those in previous fixes, but apparently there were a couple still lurking. Oops.
This commit is contained in:
parent
89014315ed
commit
e289265e37
@ -602,7 +602,7 @@ static void uss_readdir(SftpServer *srv, SftpReplyBuilder *reply,
|
||||
char *longnamebuf = NULL;
|
||||
struct fxp_attrs attrs = no_attrs;
|
||||
|
||||
#if defined HAVE_FSTATAT && defined HAVE_DIRFD
|
||||
#if HAVE_FSTATAT && HAVE_DIRFD
|
||||
struct stat st;
|
||||
if (!fstatat(dirfd(udh->dp), de->d_name, &st, AT_SYMLINK_NOFOLLOW)) {
|
||||
char perms[11], *uidbuf = NULL, *gidbuf = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user