1
1

Put back the poll declarations into priv.h

That are, poll constants.
Этот коммит содержится в:
Aris Adamantiadis 2009-07-04 13:41:16 +02:00
родитель 3659e8c04a
Коммит 708c0d32a2
2 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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 */