iio: guard pthread_setcancelstate with HAVE_PTHREAD_CANCEL
iio: guard pthread_setcancelstate with HAVE_PTHREAD_CANCEL

Signed-off-by: Constantin Musca <c18bac86dac31feebca9bb09ff094667b284e015@intel.com>
Signed-off-by: Brendan Le Foll <3e0e8c4069934e8b47d99704927a85c66c0ceb33@intel.com>

Hbrinj/mraa,stefan-andritoiu/mraa-gpio-chardev,whbruce/mraa,ncrastanaren/mraa,stefan-andritoiu/mraa-gpio-chardev,jontrulson/mraa,spitfire88/mraa,alext-mkrs/mraa,w4ilun/mraa,spitfire88/mraa,ProfFan/mraa,ncrastanaren/mraa,anonymouse64/mraa,Hbrinj/mraa,anonymouse64/mraa,g-vidal/mraa,Pillar1989/mraa,sergev/mraa,Pillar1989/mraa,yongli3/mraa,sergev/mraa,arfoll/mraa,andreivasiliu2211/mraa,w4ilun/mraa,alext-mkrs/mraa,sergev/mraa,stefan-andritoiu/mraa-gpio-chardev,arunlee77/mraa,petreeftime/mraa,stefan-andritoiu/mraa-gpio-chardev,petreeftime/mraa,Propanu/mraa,stefan-andritoiu/mraa,whbruce/mraa,arfoll/mraa,malikabhi05/mraa,Jon-ICS/mraa,yongli3/mraa,malikabhi05/mraa,Propanu/mraa,jontrulson/mraa,stefan-andritoiu/mraa,KurtE/mraa,whbruce/mraa,sergev/mraa,ProfFan/mraa,w4ilun/mraa,g-vidal/mraa,Jon-ICS/mraa,ncrastanaren/mraa,andreivasiliu2211/mraa,spitfire88/mraa,arunlee77/mraa,KurtE/mraa,andreivasiliu2211/mraa,alext-mkrs/mraa,Hbrinj/mraa,ncrastanaren/mraa,andreivasiliu2211/mraa,g-vidal/mraa,spitfire88/mraa,alext-mkrs/mraa,intel-iot-devkit/mraa,anonymouse64/mraa,malikabhi05/mraa,intel-iot-devkit/mraa,stefan-andritoiu/mraa,whbruce/mraa,yongli3/mraa,alext-mkrs/mraa,malikabhi05/mraa,sergev/mraa,g-vidal/mraa,KurtE/mraa,Propanu/mraa,intel-iot-devkit/mraa,ncrastanaren/mraa,Pillar1989/mraa,stefan-andritoiu/mraa,intel-iot-devkit/mraa,stefan-andritoiu/mraa-gpio-chardev,Hbrinj/mraa,petreeftime/mraa,jontrulson/mraa,intel-iot-devkit/mraa,g-vidal/mraa,arfoll/mraa,petreeftime/mraa,yongli3/mraa,Propanu/mraa,arfoll/mraa,w4ilun/mraa,Propanu/mraa,KurtE/mraa,jontrulson/mraa,arunlee77/mraa,malikabhi05/mraa,arunlee77/mraa,yongli3/mraa,arfoll/mraa,Jon-ICS/mraa,ProfFan/mraa,jontrulson/mraa,KurtE/mraa,stefan-andritoiu/mraa,ProfFan/mraa