summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authordtucker <dtucker>2014-01-18 10:03:59 +0000
committerdtucker <dtucker>2014-01-18 10:03:59 +0000
commite8b65fcef5c0711be1e3d09f75d6b76ba4472837 (patch)
treecfa74240ce6b2df719b07712d0a4f923a7eba786 /openbsd-compat
parenta0fd4064553945f52aafd0d6d83fe112d87afc6f (diff)
downloadopenssh-e8b65fcef5c0711be1e3d09f75d6b76ba4472837.tar.gz
- (dtucker) [openbsd-compat/bsd-cygwin_util.h] Add missing function
declarations that stopped being included when we stopped including <windows.h> from openbsd-compat/bsd-cygwin_util.h. Patch from vinschen at redhat.com.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-cygwin_util.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.h b/openbsd-compat/bsd-cygwin_util.h
index 372e4195..1177366f 100644
--- a/openbsd-compat/bsd-cygwin_util.h
+++ b/openbsd-compat/bsd-cygwin_util.h
@@ -1,4 +1,4 @@
-/* $Id: bsd-cygwin_util.h,v 1.16 2013/04/01 01:40:49 dtucker Exp $ */
+/* $Id: bsd-cygwin_util.h,v 1.17 2014/01/18 10:04:00 dtucker Exp $ */
/*
* Copyright (c) 2000, 2001, 2011, 2013 Corinna Vinschen <vinschen@redhat.com>
@@ -40,9 +40,15 @@
typedef void *HANDLE;
#define INVALID_HANDLE_VALUE ((HANDLE) -1)
+/* Cygwin functions for which declarations are only available when including
+ windows headers, so we have to define them here explicitely. */
+extern HANDLE cygwin_logon_user (const struct passwd *, const char *);
+extern void cygwin_set_impersonation_token (const HANDLE);
+
#include <sys/cygwin.h>
#include <io.h>
+
int binary_open(const char *, int , ...);
int check_ntsec(const char *);
char **fetch_windows_environment(void);