patch: miscutils/watchdoc.c

Denys Vlasenko vda.linux at googlemail.com
Sun Dec 14 14:50:09 UTC 2008


On Saturday 13 December 2008 16:58, walter harms wrote:
> the introduction of WDIOC_SETTIMEOUT add some problems for 2.4 kernels.
> 
> 1. linux/watchdog.h does not include linux/types.h
> 2. WDIOC_SETTIMEOUT may not be defined
> 
> the patch make it compile again.

+#ifdef WDIOC_SETTIMEOUT
        ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration);
+#endif

something tells me watchdog which does not actually work is not very useful,
it's better to abort here.

Applied with some changes, thanks.
--
vda



More information about the busybox mailing list