From 5e4bc6ec7947a403da3b1989c39accf16449f601 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 11 Aug 2009 15:38:49 +0200 Subject: Fix compilation with MSVC and use declspec to export functions. Thanks to Patrick Spendrin for all the MSVC fixes. --- include/libssh/priv.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/libssh/priv.h') 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 */ -- cgit