summaryrefslogtreecommitdiff
blob: f2fc0b367d48c4f3d7b0b39263bb242869721d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- a/chain.c
+++ b/chain.c
@@ -21,7 +21,7 @@ Author : Peter Turczak <p_turczak@wiwa.de>
 #include "chain.h"
 #include <stdio.h>
 #include <stdlib.h>
-
+#include <string.h>
 
 struct element* newchain()
 {
--- a/filedb.c
+++ b/filedb.c
@@ -1,5 +1,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include "chain.h"
 #include "filedb.h"
--- a/inifile.c
+++ b/inifile.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "inifile.h"
 
 /*
--- a/watchd.c
+++ b/watchd.c
@@ -25,6 +25,7 @@ Syntax   : watchd
 #include <sys/types.h>
 #include <sys/timeb.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/wait.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/watchd.c b/watchd.c
index 842e186..49edb64 100644
--- a/watchd.c
+++ b/watchd.c
@@ -52,6 +52,9 @@ Syntax   : watchd
 #define FL_LOG_MAIL		256
 #define FL_LOG_ALWAYS		512
 
+int isdir(char *name);
+void ini_close(inifile *i);
+
 typedef struct Twatchfolder 
 		{
 		 char* runprg;