This is an adapted version of the original by Zoong Pham. To use this patch, run these commands for a successful build: patch -p1 #endif #ifdef HAVE_SYS_ATTR_H