summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2021-04-07 08:50:38 +1000
committerDamien Miller <djm@mindrot.org>2021-04-07 08:50:38 +1000
commite7d0a285dbdd65d8df16123ad90f15e91862f959 (patch)
tree9ad2cfb1ed9282642509c54c579cceeeb3c237a8
parentf283a6c2e0a9bd9369e18462acd00be56fbe5b0d (diff)
wrap struct rlimit in HAVE_GETRLIMIT too
-rw-r--r--sftp-server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 1f9997bd..838f0488 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1491,7 +1491,9 @@ process_extended_limits(u_int32_t id)
struct sshbuf *msg;
int r;
uint64_t nfiles = 0;
+#ifdef HAVE_GETRLIMIT
struct rlimit rlim;
+#endif
debug("request %u: limits", id);