public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-process/anacron/files/, sys-process/anacron/
@ 2015-08-10  8:00 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2015-08-10  8:00 UTC (permalink / raw
  To: gentoo-commits

commit:     5e28659690a42ec29adbb3f21c9481e638022faa
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 07:49:57 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 07:59:51 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e286596

anacron: fix various missing prototype warnings

 sys-process/anacron/anacron-2.3-r3.ebuild          |  1 +
 .../anacron/files/anacron-2.3-headers.patch        | 40 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild
index 202cfdd..0af2e1f 100644
--- a/sys-process/anacron/anacron-2.3-r3.ebuild
+++ b/sys-process/anacron/anacron-2.3-r3.ebuild
@@ -21,6 +21,7 @@ RDEPEND="${RDEPEND}
 
 src_prepare() {
 	epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch
+	epatch "${FILESDIR}"/${P}-headers.patch
 	sed -i \
 		-e '/^CFLAGS/{s:=:+=:;s:-O2::}' \
 		Makefile || die

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 0000000..2d4b176
--- /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>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-10  8:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10  8:00 [gentoo-commits] repo/gentoo:master commit in: sys-process/anacron/files/, sys-process/anacron/ Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox