summaryrefslogtreecommitdiff
path: root/security/openssh/patches/patch-sftp-common.c
blob: 696b5f8a38d52732cb4d6dfa12ce9765d2a954c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-sftp-common.c,v 1.2.12.1 2015/08/24 19:06:40 tron Exp $

Include <unistd.h> for strmode(3).

--- sftp-common.c.orig	2015-07-01 02:35:31.000000000 +0000
+++ sftp-common.c
@@ -37,6 +37,9 @@
 #include <string.h>
 #include <time.h>
 #include <stdarg.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #ifdef HAVE_UTIL_H
 #include <util.h>
 #endif