When compiling gnutls.c on solaris 10 sparc with gcc 4.6.1
I get an error on:
ret = ioctl (fd, FIONBIO, &one);
because FIONBIO is undefined.
Adding:
#include <sys/fcntl.h>
Let:
#ifdef F_GETFL
ret = fcntl (fd, F_SETFL, flags | O_NONBLOCK);
to be used instead. It then compiles and correctly works.
Thank you to see how to include sys/fcntl.h conditionnally. I checked but it
is not clear to me when and why you decide to include this system file.
I'll be glad to test new versions for you.
Christian
