VxWorks SDK header dependencies

I’m trying to migrate an app that was written for VxWorks 6.6 but I’m having some issues on the way.

I have a header file that uses “wdLib.h” to import “WDOG_ID”. This is giving me the next error:

error: unknown type name 'WDOG_ID'

I’ve checked the file “wdLib.h” and realized that the definition has been moved to “types/vxWind.h”. Therefore I’ve included the “vxWind.h” header but the problem persists.

I’m using a makefile. If I include the path where “wdLib.h” and “vxWind.h” are located I even experience more errors like:

error: unknown type name '_Vx_SEM_ID'
    _Vx_SEM_ID          condSemId;      /* Vx sem associated with */
error: unknown type name '_Vx_OBJ_HANDLE'; did you mean 'OBJ_HANDLE'?
typedef _Vx_OBJ_HANDLE  trace_id_t;

Could someone please give me a hand.