This is only from a openBSD perspective and not yet complete.
I was just trying to get it to compile without too much effort.
I adjusted C and LD flags because X11 and freetype locations are different on openBSD.
Removed alloca.h because alloca is present in stdlib.h on openBSD.
One porting issue is the use of epoll which is Linux specific. An alternative is kqueue which can be used on Mac OS and BSD.
Similar patching has been done from openBSD for wayland I think.
I'm neither a openBSD or C ace so my skills are limited, still happy to help though.
This is only from a openBSD perspective and not yet complete. I was just trying to get it to compile without too much effort.
I adjusted C and LD flags because X11 and freetype locations are different on openBSD. Removed alloca.h because alloca is present in stdlib.h on openBSD.
One porting issue is the use of epoll which is Linux specific. An alternative is kqueue which can be used on Mac OS and BSD. Similar patching has been done from openBSD for wayland I think.
I'm neither a openBSD or C ace so my skills are limited, still happy to help though.