请教此英语句子结构

问题描述:

请教此英语句子结构
Most people had a problem getting enough to eat.
请问下这里的getting算是什么结构?

getting enough to eat 动名词词组作后置定语修饰problem
大多数人都有取得足够食物的问题