summaryrefslogtreecommitdiff
path: root/system/incron/fix-compiliation.diff
diff options
context:
space:
mode:
authorAsaf Ohaion <asaf@lingnu.com>2011-07-03 13:55:45 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:02 -0300
commite0f1aa4a109dfaa680f5b82ae313f0059919d568 (patch)
tree02f8de1b9f16b1e959c4e0371d29fb53c426d1a5 /system/incron/fix-compiliation.diff
parent6aad810e26d431cda35d53ae27e8735607fbe3e4 (diff)
downloadslackbuilds-e0f1aa4a109dfaa680f5b82ae313f0059919d568.tar.gz
system/incron: Added (inotify cron system)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/incron/fix-compiliation.diff')
-rw-r--r--system/incron/fix-compiliation.diff57
1 files changed, 57 insertions, 0 deletions
diff --git a/system/incron/fix-compiliation.diff b/system/incron/fix-compiliation.diff
new file mode 100644
index 0000000000..2acfdeffe1
--- /dev/null
+++ b/system/incron/fix-compiliation.diff
@@ -0,0 +1,57 @@
+diff -uNr incron-0.5.9/appargs.cpp incron-0.5.9_patched/appargs.cpp
+--- incron-0.5.9/appargs.cpp 2009-06-21 23:27:24.000000000 +0300
++++ incron-0.5.9_patched/appargs.cpp 2011-04-06 15:35:32.565888675 +0300
+@@ -22,6 +22,8 @@
+
+ #include <cstring>
+
++#include <stdio.h>
++
+ #include "strtok.h"
+
+ #include "appargs.h"
+diff -uNr incron-0.5.9/icd-main.cpp incron-0.5.9_patched/icd-main.cpp
+--- incron-0.5.9/icd-main.cpp 2009-06-21 23:27:24.000000000 +0300
++++ incron-0.5.9_patched/icd-main.cpp 2011-04-06 15:32:20.007891134 +0300
+@@ -23,6 +23,7 @@
+ #include <errno.h>
+ #include <sys/poll.h>
+ #include <sys/stat.h>
++#include <stdio.h>
+ #include <cstring>
+
+ #include "inotify-cxx.h"
+diff -uNr incron-0.5.9/incroncfg.cpp incron-0.5.9_patched/incroncfg.cpp
+--- incron-0.5.9/incroncfg.cpp 2009-06-21 23:27:24.000000000 +0300
++++ incron-0.5.9_patched/incroncfg.cpp 2011-04-06 15:35:04.422890150 +0300
+@@ -181,7 +181,7 @@
+
+ bool IncronCfg::IsComment(const char* s)
+ {
+- char* sx = strchr(s, '#');
++ const char* sx = strchr(s, '#');
+ if (sx == NULL)
+ return false;
+
+diff -uNr incron-0.5.9/inotify-cxx.cpp incron-0.5.9_patched/inotify-cxx.cpp
+--- incron-0.5.9/inotify-cxx.cpp 2009-06-21 23:27:24.000000000 +0300
++++ incron-0.5.9_patched/inotify-cxx.cpp 2011-04-06 15:32:39.878890586 +0300
+@@ -22,6 +22,7 @@
+
+ #include <errno.h>
+ #include <unistd.h>
++#include <stdio.h>
+ #include <fcntl.h>
+
+ #include "inotify-cxx.h"
+diff -uNr incron-0.5.9/usertable.cpp incron-0.5.9_patched/usertable.cpp
+--- incron-0.5.9/usertable.cpp 2009-06-21 23:27:24.000000000 +0300
++++ incron-0.5.9_patched/usertable.cpp 2011-04-06 15:33:09.499888673 +0300
+@@ -25,6 +25,7 @@
+ #include <unistd.h>
+ #include <grp.h>
+ #include <stdlib.h>
++#include <stdio.h>
+ #include <sys/stat.h>
+ #include <cstring>
+