--- IO-AIO/AIO.xs 2018/08/14 11:50:43 1.265 +++ IO-AIO/AIO.xs 2018/08/14 14:03:14 1.266 @@ -196,6 +196,11 @@ # define minor(dev) ((dev) & 0xff) #endif +/* solaris has a non-posix/unix compliant PAGESIZE that breaks compilation */ +#ifdef __sun +# undef PAGESIZE +#endif + #if PAGESIZE <= 0 # define PAGESIZE sysconf (_SC_PAGESIZE) #endif