Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/libssh security/libssh: Build fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b2b840e5382
branches:  trunk
changeset: 435920:1b2b840e5382
user:      micha <micha%pkgsrc.org@localhost>
date:      Mon Jul 20 15:56:24 2020 +0000

description:
security/libssh: Build fix

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

OK from is@.

diffstat:

 security/libssh/distinfo                                    |   3 +-
 security/libssh/patches/patch-examples_sshd__direct-tcpip.c |  17 +++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 260c1d5bfda4 -r 1b2b840e5382 security/libssh/distinfo
--- a/security/libssh/distinfo  Mon Jul 20 14:41:05 2020 +0000
+++ b/security/libssh/distinfo  Mon Jul 20 15:56:24 2020 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.22 2020/04/12 21:05:01 wiz Exp $
+$NetBSD: distinfo,v 1.23 2020/07/20 15:56:24 micha Exp $
 
 SHA1 (libssh-0.9.4.tar.xz) = 93289b77379263328c843fa85ba5ed4b274b689f
 RMD160 (libssh-0.9.4.tar.xz) = 4d1323a8ee50d54d66151177002fd9d12d696fed
 SHA512 (libssh-0.9.4.tar.xz) = 38705c19c293ea5e6d286d22eb17021dbe58d88c1e647b699933aa0db9ca1174d43d1ff76c1a1b17bf2cc1a8297ec02f1a67dd9e969676dd69cf6fbdae9bc8d4
 Size (libssh-0.9.4.tar.xz) = 500776 bytes
 SHA1 (patch-CompilerChecks.cmake) = 77b93572006132c557cb9a57698e8455f7874073
+SHA1 (patch-examples_sshd__direct-tcpip.c) = 62de8625d58dbc03c38b0eb23f6e7f20a46e91de
 SHA1 (patch-tests_torture.c) = 2c70e9d827f15ec36a62e0d0f5dd98774f24f79e
diff -r 260c1d5bfda4 -r 1b2b840e5382 security/libssh/patches/patch-examples_sshd__direct-tcpip.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libssh/patches/patch-examples_sshd__direct-tcpip.c       Mon Jul 20 15:56:24 2020 +0000
@@ -0,0 +1,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>



Home | Main Index | Thread Index | Old Index