summaryrefslogtreecommitdiffstats
path: root/include/libssh/priv.h
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 /include/libssh/priv.h
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 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 1c8628e2..7193f834 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -152,13 +152,25 @@ typedef struct pollfd_s {
} pollfd_t;
/* poll.c */
-#define POLLIN 0x001 /* There is data to read. */
+#ifndef POLLIN
+# define POLLIN 0x001 /* There is data to read. */
+#endif
+#ifndef POLLPRI
#define POLLPRI 0x002 /* There is urgent data to read. */
+#endif
+#ifndef POLLOUT
#define POLLOUT 0x004 /* Writing now will not block. */
+#endif
+#ifndef POLLERR
#define POLLERR 0x008 /* Error condition. */
+#endif
+#ifndef POLLHUP
#define POLLHUP 0x010 /* Hung up. */
+#endif
+#ifndef POLLNVAL
#define POLLNVAL 0x020 /* Invalid polling request. */
+#endif
typedef unsigned long int nfds_t;
#endif /* HAVE_POLL */