summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2008-06-13 14:18:51 +0000
committerdtucker <dtucker@openbsd.org>2008-06-13 14:18:51 +0000
commite91715073864683f2f854ee308a36e7aaa9589b6 (patch)
tree434c940138532bbf22d862348676983b4012ab4f
parentcorrection from Tamas TEVESZ; (diff)
downloadwireguard-openbsd-e91715073864683f2f854ee308a36e7aaa9589b6.tar.xz
wireguard-openbsd-e91715073864683f2f854ee308a36e7aaa9589b6.zip
Include unistd.h for close(), prevents warnings in -portable
-rw-r--r--usr.bin/ssh/auth-rhosts.c3
-rw-r--r--usr.bin/ssh/auth2-pubkey.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth-rhosts.c b/usr.bin/ssh/auth-rhosts.c
index 00ef42b7fd3..f6491740e1f 100644
--- a/usr.bin/ssh/auth-rhosts.c
+++ b/usr.bin/ssh/auth-rhosts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-rhosts.c,v 1.42 2008/06/13 04:40:22 djm Exp $ */
+/* $OpenBSD: auth-rhosts.c,v 1.43 2008/06/13 14:18:51 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
+#include <unistd.h>
#include "packet.h"
#include "buffer.h"
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c
index 6b2d3d2c8b9..8edff2c228f 100644
--- a/usr.bin/ssh/auth2-pubkey.c
+++ b/usr.bin/ssh/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.16 2008/06/13 04:40:22 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.17 2008/06/13 14:18:51 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -31,6 +31,7 @@
#include <pwd.h>
#include <stdio.h>
#include <stdarg.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "ssh.h"