summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-10 03:49:57 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-10 03:59:51 -0400
commit5e28659690a42ec29adbb3f21c9481e638022faa (patch)
treec3adda1d733341cff5c79a7f24c4c62e0ffe4956 /sys-process/anacron/files
parentanacron: improve CFLAGS/CC handling (diff)
downloadgentoo-5e28659690a42ec29adbb3f21c9481e638022faa.tar.gz
gentoo-5e28659690a42ec29adbb3f21c9481e638022faa.tar.bz2
gentoo-5e28659690a42ec29adbb3f21c9481e638022faa.zip
anacron: fix various missing prototype warnings
Diffstat (limited to 'sys-process/anacron/files')
-rw-r--r--sys-process/anacron/files/anacron-2.3-headers.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-process/anacron/files/anacron-2.3-headers.patch b/sys-process/anacron/files/anacron-2.3-headers.patch
new file mode 100644
index 000000000000..2d4b1762d357
--- /dev/null
+++ b/sys-process/anacron/files/anacron-2.3-headers.patch
@@ -0,0 +1,40 @@
+add headers for various function prototypes
+
+--- a/main.c
++++ b/main.c
+@@ -24,6 +24,7 @@
+
+ #include <time.h>
+ #include <stdio.h>
++#include <stdlib.h> /* exit */
+ #include <unistd.h>
+ #include <signal.h>
+ #include <fcntl.h>
+--- a/log.c
++++ b/log.c
+@@ -37,6 +37,7 @@
+ #include <unistd.h>
+ #include <syslog.h>
+ #include <stdio.h>
++#include <stdlib.h> /* exit */
+ #include <stdarg.h>
+ #include <errno.h>
+ #include <signal.h>
+@@ -78,6 +79,7 @@ make_msg(const char *fmt, va_list args)
+ strcpy(msg + sizeof(msg) - sizeof(truncated), truncated);
+ }
+
++#define log my_log /* log is a math builtin */
+ static void
+ log(int priority, const char *fmt, va_list args)
+ /* Log a message, described by "fmt" and "args", with the specified
+--- a/matchrx.c
++++ b/matchrx.c
+@@ -23,6 +23,7 @@
+
+
+ #include <stdio.h>
++#include <string.h> /* memset */
+ #include <regex.h>
+ #include <stdarg.h>
+ #include <stdlib.h>