diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 4f9ffd10..e718f5bc 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -376,13 +376,6 @@ int ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i, const char *answer); /* poll.c */ -#define POLLIN 0x001 /* There is data to read. */ -#define POLLPRI 0x002 /* There is urgent data to read. */ -#define POLLOUT 0x004 /* Writing now will not block. */ - -#define POLLERR 0x008 /* Error condition. */ -#define POLLHUP 0x010 /* Hung up. */ -#define POLLNVAL 0x020 /* Invalid polling request. */ typedef struct ssh_poll_ctx SSH_POLL_CTX; typedef struct ssh_poll SSH_POLL; diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 41ee58b6..709656b7 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -144,6 +144,15 @@ typedef struct pollfd_s { short revents; /* returned events */ } pollfd_t; +/* poll.c */ +#define POLLIN 0x001 /* There is data to read. */ +#define POLLPRI 0x002 /* There is urgent data to read. */ +#define POLLOUT 0x004 /* Writing now will not block. */ + +#define POLLERR 0x008 /* Error condition. */ +#define POLLHUP 0x010 /* Hung up. */ +#define POLLNVAL 0x020 /* Invalid polling request. */ + typedef unsigned long int nfds_t; #endif /* HAVE_POLL */