[WATCHDOG] Documentation/watchdog/watchdog-api.txt - fix watchdog daemon
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 5 Apr 2006 03:17:26 +0000 (20:17 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 15 May 2006 19:37:46 +0000 (21:37 +0200)
Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt
to build cleanly.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Documentation/watchdog/watchdog-api.txt

index c5beb548cfc42b781fd825ff9345f411f087897d..21ed5117366240d2a33af5af7f5605733bd514c1 100644 (file)
@@ -36,6 +36,9 @@ timeout or margin.  The simplest way to ping the watchdog is to write
 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) {