summaryrefslogtreecommitdiffstats
path: root/libssh/channels.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-11 15:38:49 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-11 15:38:49 +0200
commit5e4bc6ec7947a403da3b1989c39accf16449f601 (patch)
tree7fe4acd3fcdc86a51664bdde4478fe5b534bc3e4 /libssh/channels.c
parentf3612879a8c8ceabd4c1ed85839b8f58d11f9ed1 (diff)
downloadlibssh-5e4bc6ec7947a403da3b1989c39accf16449f601.tar.gz
libssh-5e4bc6ec7947a403da3b1989c39accf16449f601.tar.xz
libssh-5e4bc6ec7947a403da3b1989c39accf16449f601.zip
Fix compilation with MSVC and use declspec to export functions.
Thanks to Patrick Spendrin <ps_ml@gmx.de> for all the MSVC fixes.
Diffstat (limited to 'libssh/channels.c')
-rw-r--r--libssh/channels.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index c603d7ab..c006d248 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -1335,6 +1335,7 @@ error:
return rc;
}
+#ifndef _WIN32
/**
* @brief Accept an X11 forwarding channel.
*
@@ -1372,6 +1373,7 @@ ssh_channel channel_accept_x11(ssh_channel channel, int timeout_ms) {
return NULL;
}
+#endif
/**
* @brief Set environement variables.