This is wrong: sys/prctl.h exists only on Linux, not everywhere-but-kFreeBSD; the right way for this should be: #ifdef \_\_linux\_\_ ...