[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] wget 1.13: FIONBIO does not exist on solaris
From: |
Christian Jullien |
Subject: |
[Bug-wget] wget 1.13: FIONBIO does not exist on solaris |
Date: |
Sat, 3 Sep 2011 14:42:18 +0200 |
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
- [Bug-wget] wget 1.13: FIONBIO does not exist on solaris,
Christian Jullien <=