Hey Ralf, Including sys/ioctl.h into ossp.h doesn't help as it is included into osspd.c too late (sys/socket.h already did harm by undefining IOC_IN and IOC_OUT).
But including sys/ioctl.h directly into osspd.c before sys/socket.h works. Here is a possible patch: --- a/osspd.c +++ b/osspd.c @@ -22,6 +22,7 @@ #include <stdio.h> #include <stdlib.h> #include <signal.h> +#include <sys/ioctl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/epoll.h> Hopefully, it won't cause damage for other architectures. Cheers! -- Sergei Golovan