Subject: Re: [libssh2] [PATCH] AIX build fix

Re: [libssh2] [PATCH] AIX build fix

From: Daniel Stenberg <>
Date: Thu, 23 Nov 2006 23:43:31 +0100 (CET)

On Thu, 23 Nov 2006, Tor Arntsen wrote:

> The problem is that AIX has these defines in /usr/include/sys/poll.h:
> #define events reqevents /* SVR3,4 pollfd member name */
> #define revents rtnevents /* SVR3,4 pollfd member name */

Now that's one pair of nasty defines!

> I have used ssh2events, ssh2revents in order to create a private namespace.
> This fixes the AIX build problem, and ssh2_sample works, so far so good.
> Let me know what you think.

Did you try to simply #undef events and revents in session.c after all the

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
libssh2-devel mailing list
Received on 2006-11-23