In a diff against ril.c, it includes <gril.h> whereas you don't here...