--- /usr/portage/x11-drivers/ati-drivers/ati-drivers-10.9.ebuild 2010-09-21 13:40:34.000000000 +0200 +++ ati-drivers-10.9.ebuild 2010-09-23 07:49:53.000000000 +0200 @@ -260,6 +260,10 @@ # Fix a known compilation error epatch "${FILESDIR}"/ati-drivers-fix_compilation-bug-297322.patch + if grep -q compat_alloc_user_space /usr/src/linux/include/linux/compat.h; then + epatch "${FILESDIR}"/ati-drivers-compat_alloc_cvs-2010-3081.patch + fi + # These are the userspace utilities that we also have source for. # We rebuild these later. rm \