--- IO-AIO/AIO.xs 2020/12/29 18:00:40 1.288 +++ IO-AIO/AIO.xs 2021/01/04 22:19:06 1.289 @@ -229,6 +229,11 @@ # define PAGESIZE sysconf (_SC_PAGESIZE) #endif +/* solaris perl seems to declare a wrong syscall function that clashes with system includes */ +#ifdef __sun +# undef HAVE_SYSCALL +#endif + #if HAVE_SYSCALL #include #else