libev on AIX

Marc Lehmann schmorp at
Tue Jan 19 15:44:17 CET 2010

On Mon, Jan 18, 2010 at 05:22:48PM +0200, Aivars Kalvans <aivars.kalvans at> wrote:
> libev fails to compile on AIX because of weird poll.h (#define events
> reqevents). Attached patch solves it but maybe you can write a better one.

Thanks, that is the most idiotic thing I have seen in a header file to date.

Is there a compile time symbol I can test for AIX (#ifdef __AIX or os)? Then
I will just disable the poll backend for that platform, I don't see it
becoming any more important in the future.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list