summaryrefslogtreecommitdiff
path: root/pkg/openssh/patch/0004-Include-stdlib.h-for-arc4random_uniform.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-19 19:33:01 -0700
committerMichael Forney <mforney@mforney.org>2019-06-19 22:27:00 -0700
commita7f7ca5a1a424c5ef287dfe4e79c9d62f33defba (patch)
tree42b6811c3c9e619f60b00768b530001f012034ab /pkg/openssh/patch/0004-Include-stdlib.h-for-arc4random_uniform.patch
parent1995df90e37b0f9498365d143210e84c178b54a2 (diff)
openssh: Fix a few portability issues
Diffstat (limited to 'pkg/openssh/patch/0004-Include-stdlib.h-for-arc4random_uniform.patch')
-rw-r--r--pkg/openssh/patch/0004-Include-stdlib.h-for-arc4random_uniform.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/openssh/patch/0004-Include-stdlib.h-for-arc4random_uniform.patch b/pkg/openssh/patch/0004-Include-stdlib.h-for-arc4random_uniform.patch
new file mode 100644
index 00000000..e1a076f6
--- /dev/null
+++ b/pkg/openssh/patch/0004-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
+