summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2006-07-17 01:31:11 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2006-07-17 01:31:11 +0000
commitd659fd7d8b8c4a47fcabe16b76f0221c7bf05757 (patch)
treef1753975c5db250478d9aaa278c4d6a1ec3115ab /usr.bin
parent6626e2fe6d63bc4f09f17b2f0cf8c7889efce808 (diff)
move #include <unistd.h> out of includes.h
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/authfd.c3
-rw-r--r--usr.bin/ssh/authfile.c3
-rw-r--r--usr.bin/ssh/channels.c3
-rw-r--r--usr.bin/ssh/cleanup.c5
-rw-r--r--usr.bin/ssh/clientloop.c3
-rw-r--r--usr.bin/ssh/groupaccess.c3
-rw-r--r--usr.bin/ssh/includes.h3
-rw-r--r--usr.bin/ssh/log.c3
-rw-r--r--usr.bin/ssh/misc.c3
-rw-r--r--usr.bin/ssh/msg.c5
-rw-r--r--usr.bin/ssh/packet.c3
-rw-r--r--usr.bin/ssh/progressmeter.c4
-rw-r--r--usr.bin/ssh/readconf.c3
-rw-r--r--usr.bin/ssh/readpass.c3
-rw-r--r--usr.bin/ssh/scp.c3
-rw-r--r--usr.bin/ssh/servconf.c3
-rw-r--r--usr.bin/ssh/sftp-client.c3
-rw-r--r--usr.bin/ssh/sftp-server.c3
-rw-r--r--usr.bin/ssh/sftp.c3
-rw-r--r--usr.bin/ssh/ssh-add.c3
-rw-r--r--usr.bin/ssh/ssh-agent.c3
-rw-r--r--usr.bin/ssh/ssh-keygen.c3
-rw-r--r--usr.bin/ssh/ssh-keyscan.c3
-rw-r--r--usr.bin/ssh/ssh-keysign.c3
-rw-r--r--usr.bin/ssh/ssh.c3
-rw-r--r--usr.bin/ssh/sshconnect.c3
-rw-r--r--usr.bin/ssh/sshlogin.c5
-rw-r--r--usr.bin/ssh/sshpty.c3
-rw-r--r--usr.bin/ssh/uidswap.c3
29 files changed, 63 insertions, 31 deletions
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c
index 5cec7a97c15..f8b7ed71fa4 100644
--- a/usr.bin/ssh/authfd.c
+++ b/usr.bin/ssh/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.76 2006/07/09 15:15:10 stevesk Exp $ */
+/* $OpenBSD: authfd.c,v 1.77 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -44,6 +44,7 @@
#include <openssl/evp.h>
#include <fcntl.h>
+#include <unistd.h>
#include "ssh.h"
#include "rsa.h"
diff --git a/usr.bin/ssh/authfile.c b/usr.bin/ssh/authfile.c
index 0ab4ccebf50..c246465ec32 100644
--- a/usr.bin/ssh/authfile.c
+++ b/usr.bin/ssh/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.69 2006/07/11 20:27:56 stevesk Exp $ */
+/* $OpenBSD: authfile.c,v 1.70 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -47,6 +47,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include "cipher.h"
#include "xmalloc.h"
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index cfb243916f4..c996e484281 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.255 2006/07/12 22:28:51 stevesk Exp $ */
+/* $OpenBSD: channels.c,v 1.256 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -52,6 +52,7 @@
#include <errno.h>
#include <netdb.h>
#include <termios.h>
+#include <unistd.h>
#include "ssh.h"
#include "ssh1.h"
diff --git a/usr.bin/ssh/cleanup.c b/usr.bin/ssh/cleanup.c
index dcf45683000..4e6c79ce74e 100644
--- a/usr.bin/ssh/cleanup.c
+++ b/usr.bin/ssh/cleanup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cleanup.c,v 1.3 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: cleanup.c,v 1.4 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2003 Markus Friedl <markus@openbsd.org>
*
@@ -14,7 +14,8 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "includes.h"
+
+#include <unistd.h>
#include "log.h"
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index ea992cbda17..63cac8efc68 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.168 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: clientloop.c,v 1.169 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -71,6 +71,7 @@
#include <paths.h>
#include <signal.h>
#include <termios.h>
+#include <unistd.h>
#include "ssh.h"
#include "ssh1.h"
diff --git a/usr.bin/ssh/groupaccess.c b/usr.bin/ssh/groupaccess.c
index 3628ebdc2ab..12d023e39d8 100644
--- a/usr.bin/ssh/groupaccess.c
+++ b/usr.bin/ssh/groupaccess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: groupaccess.c,v 1.9 2006/07/02 22:45:59 stevesk Exp $ */
+/* $OpenBSD: groupaccess.c,v 1.10 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2001 Kevin Steves. All rights reserved.
*
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <grp.h>
+#include <unistd.h>
#include "groupaccess.h"
#include "xmalloc.h"
diff --git a/usr.bin/ssh/includes.h b/usr.bin/ssh/includes.h
index 52cb8cdc8e8..72fbc918fac 100644
--- a/usr.bin/ssh/includes.h
+++ b/usr.bin/ssh/includes.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: includes.h,v 1.51 2006/07/12 22:42:32 stevesk Exp $ */
+/* $OpenBSD: includes.h,v 1.52 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -23,7 +23,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <time.h>
#endif /* INCLUDES_H */
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c
index aa7a61755a8..af913ec31c6 100644
--- a/usr.bin/ssh/log.c
+++ b/usr.bin/ssh/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.33 2006/07/10 16:37:36 stevesk Exp $ */
+/* $OpenBSD: log.c,v 1.34 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -38,6 +38,7 @@
#include <stdarg.h>
#include <syslog.h>
+#include <unistd.h>
#include <vis.h>
#include "log.h"
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c
index 3ae0793b814..d2069f5099a 100644
--- a/usr.bin/ssh/misc.c
+++ b/usr.bin/ssh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.58 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: misc.c,v 1.59 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005,2006 Damien Miller. All rights reserved.
@@ -39,6 +39,7 @@
#include <paths.h>
#include <pwd.h>
#include <stdarg.h>
+#include <unistd.h>
#include "misc.h"
#include "log.h"
diff --git a/usr.bin/ssh/msg.c b/usr.bin/ssh/msg.c
index 4344a131267..5c535d1af4b 100644
--- a/usr.bin/ssh/msg.c
+++ b/usr.bin/ssh/msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msg.c,v 1.12 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: msg.c,v 1.13 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -24,7 +24,10 @@
*/
#include "includes.h"
+#include <sys/types.h>
+
#include <errno.h>
+#include <unistd.h>
#include "buffer.h"
#include "log.h"
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c
index 50585f575b1..7c43a6d7f65 100644
--- a/usr.bin/ssh/packet.c
+++ b/usr.bin/ssh/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.135 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: packet.c,v 1.136 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -49,6 +49,7 @@
#include <errno.h>
#include <stdarg.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "buffer.h"
diff --git a/usr.bin/ssh/progressmeter.c b/usr.bin/ssh/progressmeter.c
index 615b4be7b8c..a2e462f164b 100644
--- a/usr.bin/ssh/progressmeter.c
+++ b/usr.bin/ssh/progressmeter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: progressmeter.c,v 1.30 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: progressmeter.c,v 1.31 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2003 Nils Nordman. All rights reserved.
*
@@ -25,10 +25,12 @@
#include "includes.h"
+#include <sys/types.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <signal.h>
+#include <unistd.h>
#include "progressmeter.h"
#include "atomicio.h"
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index 34d11088a7f..c679ad9446d 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.155 2006/07/12 22:28:52 stevesk Exp $ */
+/* $OpenBSD: readconf.c,v 1.156 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -23,6 +23,7 @@
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
+#include <unistd.h>
#include "ssh.h"
#include "xmalloc.h"
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 44b2d098cbd..1288086b374 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.42 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: readpass.c,v 1.43 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -33,6 +33,7 @@
#include <paths.h>
#include <readpassphrase.h>
#include <stdarg.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "misc.h"
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index f8c9cfe24a7..016d37a27ef 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.147 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: scp.c,v 1.148 2006/07/17 01:31:09 stevesk Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -84,6 +84,7 @@
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "atomicio.h"
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c
index 5371e941063..7fe5345ac56 100644
--- a/usr.bin/ssh/servconf.c
+++ b/usr.bin/ssh/servconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.154 2006/07/12 22:28:52 stevesk Exp $ */
+/* $OpenBSD: servconf.c,v 1.155 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -16,6 +16,7 @@
#include <sys/socket.h>
#include <netdb.h>
+#include <unistd.h>
#include "ssh.h"
#include "log.h"
diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c
index d4951ce8cc8..6b557b5d694 100644
--- a/usr.bin/ssh/sftp-client.c
+++ b/usr.bin/ssh/sftp-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.c,v 1.67 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.68 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -28,6 +28,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include "buffer.h"
#include "bufaux.h"
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index b9ac2ccb25a..4df6a071e34 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.62 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.63 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -22,6 +22,7 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include "buffer.h"
#include "bufaux.h"
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c
index 21717c6fb24..4c19f08f64d 100644
--- a/usr.bin/ssh/sftp.c
+++ b/usr.bin/ssh/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.85 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: sftp.c,v 1.86 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -28,6 +28,7 @@
#include <histedit.h>
#include <paths.h>
#include <signal.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "log.h"
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 3b6c330f4c4..e0441a507f7 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/ssh-add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-add.c,v 1.83 2006/07/09 15:27:59 stevesk Exp $ */
+/* $OpenBSD: ssh-add.c,v 1.84 2006/07/17 01:31:09 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -44,6 +44,7 @@
#include <fcntl.h>
#include <pwd.h>
+#include <unistd.h>
#include "ssh.h"
#include "rsa.h"
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index ecb7f55874e..deeead12da8 100644
--- a/usr.bin/ssh/ssh-agent.c
+++ b/usr.bin/ssh/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.143 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.144 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -46,6 +46,7 @@
#include <fcntl.h>
#include <paths.h>
#include <signal.h>
+#include <unistd.h>
#include <openssl/evp.h>
#include <openssl/md5.h>
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 31e0dcd7a97..e04fa1bd947 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.148 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.149 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -23,6 +23,7 @@
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "key.h"
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c
index 57ad7ee53c5..99971b08888 100644
--- a/usr.bin/ssh/ssh-keyscan.c
+++ b/usr.bin/ssh/ssh-keyscan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keyscan.c,v 1.67 2006/07/12 22:28:52 stevesk Exp $ */
+/* $OpenBSD: ssh-keyscan.c,v 1.68 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
*
@@ -18,6 +18,7 @@
#include <netdb.h>
#include <setjmp.h>
#include <stdarg.h>
+#include <unistd.h>
#include <openssl/bn.h>
diff --git a/usr.bin/ssh/ssh-keysign.c b/usr.bin/ssh/ssh-keysign.c
index 695799ffdec..a0e3fdb7ffa 100644
--- a/usr.bin/ssh/ssh-keysign.c
+++ b/usr.bin/ssh/ssh-keysign.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keysign.c,v 1.25 2006/07/09 15:15:11 stevesk Exp $ */
+/* $OpenBSD: ssh-keysign.c,v 1.26 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -33,6 +33,7 @@
#include <fcntl.h>
#include <paths.h>
#include <pwd.h>
+#include <unistd.h>
#include "log.h"
#include "key.h"
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index b88532b5b60..7c1ad341485 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.287 2006/07/12 22:42:32 stevesk Exp $ */
+/* $OpenBSD: ssh.c,v 1.288 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -57,6 +57,7 @@
#include <pwd.h>
#include <signal.h>
#include <stddef.h>
+#include <unistd.h>
#include <openssl/evp.h>
#include <openssl/err.h>
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index e04c1425b5b..624a063705c 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.191 2006/07/12 22:28:52 stevesk Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.192 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -27,6 +27,7 @@
#include <netdb.h>
#include <paths.h>
#include <pwd.h>
+#include <unistd.h>
#include "ssh.h"
#include "xmalloc.h"
diff --git a/usr.bin/ssh/sshlogin.c b/usr.bin/ssh/sshlogin.c
index 7d34cc39a04..29e9e8bd9b1 100644
--- a/usr.bin/ssh/sshlogin.c
+++ b/usr.bin/ssh/sshlogin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshlogin.c,v 1.19 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: sshlogin.c,v 1.20 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -41,8 +41,11 @@
#include "includes.h"
+#include <sys/types.h>
+
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include <util.h>
#include <utmp.h>
diff --git a/usr.bin/ssh/sshpty.c b/usr.bin/ssh/sshpty.c
index 0b9d4a02fdc..87263d3b69b 100644
--- a/usr.bin/ssh/sshpty.c
+++ b/usr.bin/ssh/sshpty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshpty.c,v 1.23 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: sshpty.c,v 1.24 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -24,6 +24,7 @@
#include <paths.h>
#include <pwd.h>
#include <termios.h>
+#include <unistd.h>
#include <util.h>
#include "sshpty.h"
diff --git a/usr.bin/ssh/uidswap.c b/usr.bin/ssh/uidswap.c
index 144ffbd3501..24463c97db1 100644
--- a/usr.bin/ssh/uidswap.c
+++ b/usr.bin/ssh/uidswap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uidswap.c,v 1.31 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: uidswap.c,v 1.32 2006/07/17 01:31:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -18,6 +18,7 @@
#include <errno.h>
#include <pwd.h>
+#include <unistd.h>
#include "log.h"
#include "uidswap.h"