I finally decided to check why I could not use xattr in my Ubuntu installation and the problem is in the file: src/build/libroot/fs_attr_xattr.h This file tries to include attr/xattr.h but in Ubuntu the correct header is actually sys/xattr.h. What would be the correct way to conditionally set the header to be included so it works in Ubuntu without breaking other distros? -Bruno