summaryrefslogtreecommitdiff
path: root/security/openssh/patches/patch-sftp-common.c
blob: c12b4fcf6277846dc8749b6b4e2d248b6d6c8ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-sftp-common.c,v 1.3 2015/08/14 08:57:00 jperkin 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