Fix linux build (#552)

This commit is contained in:
hamletg 2022-01-18 21:47:03 +02:00 committed by GitHub
parent 692384a494
commit d4b3264993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

3
sftp.c
View File

@ -53,6 +53,7 @@ typedef void EditLine;
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#ifdef HAVE_UTIL_H
# include <util.h>
@ -2601,7 +2602,7 @@ main(int argc, char **argv)
#ifdef WINDOWS
addargs(&args, "sftp-server.exe");
#elif
#else
addargs(&args, "sftp-server");
#endif // WINDOWS

4
sshd.c
View File

@ -494,14 +494,14 @@ privsep_preauth_child(void)
}
}
void
static void
send_rexec_state(int, struct sshbuf *);
static void send_config_state(int fd, struct sshbuf *conf)
{
send_rexec_state(fd, conf);
}
void
static void
recv_rexec_state(int, struct sshbuf *);
static void recv_config_state(int fd, struct sshbuf *conf)
{