Messages in this thread Patch in this message | | | Date | Tue, 4 Apr 2006 20:17:26 -0700 | From | "Randy.Dunlap" <> | Subject | [PATCH] Doc: fix simple watchdog daemon to build cleanly |
| |
From: Randy Dunlap <rdunlap@xenotime.net>
Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt to build cleanly.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> --- Documentation/watchdog/watchdog-api.txt | 3 +++ 1 files changed, 3 insertions(+)
--- linux-2617-rc1-docsrc.orig/Documentation/watchdog/watchdog-api.txt +++ linux-2617-rc1-docsrc/Documentation/watchdog/watchdog-api.txt @@ -36,6 +36,9 @@ timeout or margin. The simplest way to some data to the device. So a very simple watchdog daemon would look like this: +#include <stdlib.h> +#include <fcntl.h> + int main(int argc, const char *argv[]) { int fd=open("/dev/watchdog",O_WRONLY); if (fd==-1) {
--- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |