Hi all, This is similar to what we do with http://git.suckless.org/utmp. Take this with a grain of salt at the moment. There are some smaller fixes embedded in this commit and it might be wise to split those out.
Second step is to split the ifdef'ed code out into bsd.c and linux.c or similar (and update the OBJ entries from the corresponding config.* files.) Let me know what you think. bye, sin