aboutsummaryrefslogtreecommitdiff
path: root/net/openssh
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-07-03 20:50:00 -0700
committertripolar <tripolar@users.noreply.github.com>2019-07-21 12:31:31 +0200
commit5a3e520f45b96f3458266ba20cf4d3b09bb4b974 (patch)
treeab0c1f8101b5a054b319dbcb0499d90f97c72167 /net/openssh
parent80bad7073f15e8b9c6567463d3f42a7121e35601 (diff)
openssh: Fix compilation with -Wimplicit-function
Upstream backport. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/openssh')
-rw-r--r--net/openssh/Makefile2
-rw-r--r--net/openssh/patches/010-musl-stdio.patch22
2 files changed, 23 insertions, 1 deletions
diff --git a/net/openssh/Makefile b/net/openssh/Makefile
index 04b2d0e9e..3eb941323 100644
--- a/net/openssh/Makefile
+++ b/net/openssh/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openssh
PKG_VERSION:=8.0p1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
diff --git a/net/openssh/patches/010-musl-stdio.patch b/net/openssh/patches/010-musl-stdio.patch
new file mode 100644
index 000000000..282f963e6
--- /dev/null
+++ b/net/openssh/patches/010-musl-stdio.patch
@@ -0,0 +1,22 @@
+From 73eb6cef41daba0359c1888e4756108d41b4e819 Mon Sep 17 00:00:00 2001
+From: Darren Tucker <dtucker@dtucker.net>
+Date: Sun, 16 Jun 2019 12:55:27 +1000
+Subject: [PATCH] Include stdio.h for vsnprintf.
+
+Patch from mforney at mforney.org.
+---
+ openbsd-compat/setproctitle.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/openbsd-compat/setproctitle.c b/openbsd-compat/setproctitle.c
+index dbd1a95a0..e4064323a 100644
+--- a/openbsd-compat/setproctitle.c
++++ b/openbsd-compat/setproctitle.c
+@@ -36,6 +36,7 @@
+ #ifndef HAVE_SETPROCTITLE
+
+ #include <stdarg.h>
++#include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+ #ifdef HAVE_SYS_PSTAT_H