odknt / bspwmbar

A lightweight status bar for bspwm.
ISC License
92 stars 11 forks source link

BSD support #12

Closed clstb closed 5 years ago

clstb commented 5 years ago

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.

odknt commented 5 years ago

@clstb Thanks for the PR.

I will try implement polling by using kqueue for BSD. Probably build fail on Linux after merged, but I fix it later.