summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-08-05 19:08:16 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-08-05 19:08:16 +1000
commit92350103fcf406d054a698ab2ea34feb4bfff6fc (patch)
treee3faa6eea711fc59b4c237709c5fb7f9dbe8c446
parentf676c57958c8e9a743f54a95479db478248d6fd0 (diff)
- (dtucker) [openbsd-compat/bsd-cygwin_util.c] Add headers required to compile
on Cygwin.
-rw-r--r--ChangeLog4
-rw-r--r--openbsd-compat/bsd-cygwin_util.c9
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 37e6532a..ce2ee60d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -118,6 +118,8 @@
- dtucker@cvs.openbsd.org 2006/08/05 08:34:04
[packet.c]
Typo in comment
+ - (dtucker) [openbsd-compat/bsd-cygwin_util.c] Add headers required to compile
+ on Cygwin.
20060804
- (dtucker) [configure.ac] The "crippled AES" test does not work on recent
@@ -5188,4 +5190,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.4469 2006/08/05 08:51:08 dtucker Exp $
+$Id: ChangeLog,v 1.4470 2006/08/05 09:08:16 dtucker Exp $
diff --git a/openbsd-compat/bsd-cygwin_util.c b/openbsd-compat/bsd-cygwin_util.c
index b408dde2..4d31ef3b 100644
--- a/openbsd-compat/bsd-cygwin_util.c
+++ b/openbsd-compat/bsd-cygwin_util.c
@@ -31,11 +31,16 @@
#ifdef HAVE_CYGWIN
-#include <fcntl.h>
-#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/utsname.h>
#include <sys/vfs.h>
+
+#include <fcntl.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <windows.h>
+
#include "xmalloc.h"
#define is_winnt (GetVersion() < 0x80000000)