Attached is an updated version of the patch to replace is_member_of_role with has_privs_for_role for predefined roles. It does not remove is_member_of_role from acl.h but it does add a warning not to use that function for privilege checking.
Please consider this for the upcoming commitfest.
0001-use-has_privs_for_roles-for-predefined-role-checks.patch
Description: Binary data