patch: miscutils/watchdoc.c

walter harms wharms at bfs.de
Sat Dec 13 15:58:23 UTC 2008


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.

re,
 wh


In file included from miscutils/watchdog.c:13:
/usr/local/cris/cris-axis-linux-gnu/sys-include/linux/watchdog.h:17: parse error before "__u32"
/usr/local/cris/cris-axis-linux-gnu/sys-include/linux/watchdog.h:19: parse error before "identity"
/usr/local/cris/cris-axis-linux-gnu/sys-include/linux/watchdog.h:20: parse error before '}' token
miscutils/watchdog.c: In function `watchdog_main':
miscutils/watchdog.c:60: `WDIOC_SETTIMEOUT' undeclared (first use in this function)
miscutils/watchdog.c:60: (Each undeclared identifier is reported only once
miscutils/watchdog.c:60: for each function it appears in.)
make[1]: *** [miscutils/watchdog.o] Fehler 1
make: *** [miscutils] Fehler 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchdog.c.diff
Type: text/x-patch
Size: 597 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081213/62b9ae44/attachment-0002.bin 


More information about the busybox mailing list