summaryrefslogtreecommitdiff
path: root/pkg/openssh/patch/0001-Include-stdlib.h-for-arc4random_uniform.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/openssh/patch/0001-Include-stdlib.h-for-arc4random_uniform.patch')
-rw-r--r--pkg/openssh/patch/0001-Include-stdlib.h-for-arc4random_uniform.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/openssh/patch/0001-Include-stdlib.h-for-arc4random_uniform.patch b/pkg/openssh/patch/0001-Include-stdlib.h-for-arc4random_uniform.patch
new file mode 100644
index 00000000..e1a076f6
--- /dev/null
+++ b/pkg/openssh/patch/0001-Include-stdlib.h-for-arc4random_uniform.patch
@@ -0,0 +1,24 @@
+From 8e035c27bf466534db0b9233cb038973b1f9ffc5 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Wed, 19 Jun 2019 20:06:29 -0700
+Subject: [PATCH] Include stdlib.h for arc4random_uniform
+
+---
+ openbsd-compat/bindresvport.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/openbsd-compat/bindresvport.c b/openbsd-compat/bindresvport.c
+index eeb269d5..346c7fe5 100644
+--- a/openbsd-compat/bindresvport.c
++++ b/openbsd-compat/bindresvport.c
+@@ -40,6 +40,7 @@
+ #include <arpa/inet.h>
+
+ #include <errno.h>
++#include <stdlib.h>
+ #include <string.h>
+
+ #define STARTPORT 600
+--
+2.20.1
+