Do you have any idea something similar would be required for FreeBSD? I'm just wondering if this could be solved in a slightly more generic way. Is there a __BSD__ #define that could be used here?