Both 32-bit and 64-bit versions of latest 7.2.0 release with POSIX threads have pthread.h include file with broken pthread_attr_getstackaddr() and pthread_attr_getschedpolicy() function declarations with missing const modifier for pthreadattrt attr argument according to phread specification by OpenGroup.
I fixed this on master via 5be179b4611c2174c73ee5947d4d10e031069381.