When compiling sys-libs/libselinux with glibc 2.12.1, compile fails with a message indicating that S_IS_REG is undefined. Reproducible: Always Steps to Reproduce: 1.Merge glibc 2.12.1 2.Merge libselinux from ~AMD64 tree (2.0.85) 3.Observe compile error Actual Results: libselinux fails to compile Expected Results: libselinux should compile properly This appears to be a manifestation of bug 331665.
Created attachment 248295 [details, diff] Add <sys/stat.h> to includes This patch allows libselinux to compile properly with glibc 2.12.1
dont know why you cc-ed toolchain ... we dont deal with fixes for packages
i dont use selinux, but i cant see a problem with the patch, so ive applied it someone else will have to take care of making sure upstream has the issue fixed, but i wouldnt be surprised if upstream is already fixed ...