bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] patch to activate itimer support


From: Tim Ruehsen
Subject: [Bug-wget] patch to activate itimer support
Date: Wed, 28 Mar 2012 13:24:09 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

I realised that there is conditional itimer code in utils.c for alarm_set() 
and alarm_cancel(). It needs ITIMER_REAL to be defined, which is done in 
sys/time.h (Linux, BSD, maybe other OSes).

Since the fallback code calls alarm(), no sub-second timeout is available.
At least on a current Debian SID, where sys/time.h is not implicitely 
included.

The attached patch adds #include <sys/time.h> to fix the issue.

Tim

Attachment: itimer.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]