Building on Windows we found a conflict between the pthread.h file in PostgreSQL and the pthread.h in the C++ standard library. This showed up as a runtime issue and the best solution has so far been to rename the file in PostgreSQL so it is not found. This showed up when compiling with MinGW and may not be an issue with MSVC.How will renaming pthread.h affect PostgreSQL?
I renamed the include/pthread.h to include/pthread_hold.h so the file is no longer found when building.What did you rename your pthread.h in your PostgreSQL 10 installation to?
Barbara