summaryrefslogtreecommitdiff
path: root/security/libssh/patches/patch-examples_sshd__direct-tcpip.c
blob: ffa93b7b59b0f4217531580e96b008847287926e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-examples_sshd__direct-tcpip.c,v 1.1 2020/07/20 15:56:24 micha Exp $

Build fix:
Include header files with declarations for struct sockaddr_in and send().

--- examples/sshd_direct-tcpip.c.orig	2020-01-27 15:45:32.000000000 +0000
+++ examples/sshd_direct-tcpip.c
@@ -20,6 +20,9 @@ clients must be made or how a client sho
 
 #include "config.h"
 
+#include <netinet/in.h>  /* For struct sockaddr_in */
+#include <sys/socket.h>  /* For send() */
+
 #include <libssh/libssh.h>
 #include <libssh/server.h>
 #include <libssh/callbacks.h>