main: fixed compile breakage due to anonymous enum in resource struct.