From: Randy Dunlap Date: Wed, 5 Apr 2006 03:17:26 +0000 (-0700) Subject: [WATCHDOG] Documentation/watchdog/watchdog-api.txt - fix watchdog daemon X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92930d9e8121223e14131809c6e9959ee9e0c43f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [WATCHDOG] Documentation/watchdog/watchdog-api.txt - fix watchdog daemon Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt to build cleanly. Signed-off-by: Randy Dunlap Signed-off-by: Wim Van Sebroeck Signed-off-by: Andrew Morton --- diff --git a/Documentation/watchdog/watchdog-api.txt b/Documentation/watchdog/watchdog-api.txt index c5beb548cfc4..21ed51173662 100644 --- a/Documentation/watchdog/watchdog-api.txt +++ b/Documentation/watchdog/watchdog-api.txt @@ -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 +#include + int main(int argc, const char *argv[]) { int fd=open("/dev/watchdog",O_WRONLY); if (fd==-1) {