I think the _BSD_SOURCE support is ready to merge now. It is available from https://github.com/idunham/musl bsd Alternately, I attached the diff against master (master-bsd.diff, 604 lines total touching about 25 files) If there are any issues with this, I can try to fix them. Isaac Dunham