Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
I was able to include POSIX related headers by referring to "SYS/BIOS POSIX Thread (pthread) Support" ti wiki page.
Post to which including other standard POSIX header(sys/stat.h) from "packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include" which is not part of "ti\sysbios\posix" package results in Invalid re-definition errors during compilation.
For Instance: Including ti provided "Pthread.h " internally includes "types.h" file which had got all the timer related structures got defined. Including <sys/stat.h> in the same usecase were in <sys/stat.h> internally includes "types.h" which had got other timer related structures being defined, results in invalid redeclaration of type name "clockid_t" (declared at line 82 of "PROCESSOR_SDK_VISION_03_03_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/posix/types.h")
As clockid_t is already defined under POSIX related header files trying to include the same from Gnu package results in error.
But I was not clear on is all the related components declared/defined under <sys/types.h> is taken care under ti provided POSIX(ti\sysbios\posix) package? Is including headers from POSIX package alone would be good enough by discarding/not including the header files available at "packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include" directory?
If not are there any Specific Macro's to be defined/used when POSIX related headers(ti\sysbios\posix) are included?