Redefined types when using FreeRTOS+POSIX and GCC compiler (Linaro v6.3.1)

Hello, I’m using TI tools (Code Composer Studio and the RM57 Launchpad MCU). I added FreeRTOS+POSIX to my already working GCC + FreeRTOS project. After adding all include paths I got compiler errors saying that the types shown in the attachment were redefined in POSIX types.h/time.h and compiler types.h. I added -iquote”${workspaceloc:/${ProjName}/include/FreeRTOSPOSIX}” to the compiler flags to make sure that the correct sys/types.h was included at the POSIX and library files. With this, every time “sys/types.h” is included with quotes the POSIX file will be used and every time <sys/types.h> is included with angle brackets the compiler library file will be used. However that did not fix the problem. After analyzing the intermediate files from running the preprocessor only (-E) I was able to find out that almost all of the FreeRTOS+POSIX headers (time.h, pthread.h etc.) include both sys/types.h files and therefore they break. They do not include them explicitly but when going down the include chain they eventually get included. I had FreeRTOS+POSIX running on another project with a TI compiler and it was working as expected. However, I did not see a sys/types.h file in the TI compiler library files. The problem showed up when I migrated to GCC. I realize that this could be a TI specific issue but still wanted to put it out there and see if someone has had the same problem. Thank you, Surialic