Skip to contentSkip to conversation

Doc: fix simple watchdog daemon to build cleanly

PATCH New Randy.Dunlap 1 participant 1 message Apr 5, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Doc: fix simple watchdog daemon to build cleanly

From: Randy Dunlap <[email protected]>

Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt to build cleanly.

---
 Documentation/watchdog/watchdog-api.txt |    3 +++
 1 files changed, 3 insertions(+)
Documentation/watchdog/watchdog-api.txt +3 -0
@@ -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) {

---