summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2009-10-23 13:05:19 +0000
committerJeroen Roovers <jer@gentoo.org>2009-10-23 13:05:19 +0000
commitf7430a072219f015ddc8facb137bc7c925fd8b6f (patch)
tree4ae32aaacf3e396f30233e91edb4daab4b1fb706 /net-misc
parentamd64 stable wrt #288276 (diff)
downloadgentoo-2-f7430a072219f015ddc8facb137bc7c925fd8b6f.tar.gz
gentoo-2-f7430a072219f015ddc8facb137bc7c925fd8b6f.tar.bz2
gentoo-2-f7430a072219f015ddc8facb137bc7c925fd8b6f.zip
Fix for "implicit declaration of function ‘time’".
(Portage version: 2.2_rc46/cvs/Linux i686)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/redir/ChangeLog8
-rw-r--r--net-misc/redir/files/redir-2.2.1-include.patch10
-rw-r--r--net-misc/redir/redir-2.2.1.ebuild16
3 files changed, 29 insertions, 5 deletions
diff --git a/net-misc/redir/ChangeLog b/net-misc/redir/ChangeLog
index fba1a2f88fe3..5b8d971b01b0 100644
--- a/net-misc/redir/ChangeLog
+++ b/net-misc/redir/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/redir
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/redir/ChangeLog,v 1.11 2009/05/30 02:00:17 darkside Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/redir/ChangeLog,v 1.12 2009/10/23 13:05:18 jer Exp $
+
+ 23 Oct 2009; Jeroen Roovers <jer@gentoo.org> redir-2.2.1.ebuild,
+ +files/redir-2.2.1-include.patch:
+ Fix for "implicit declaration of function ‘time’".
30 May 2009; Jeremy Olexa <darkside@gentoo.org> redir-2.2.1.ebuild:
(non maintainer commit) Respect flags and QA fixes, bug 241080 by Espen Hustad
diff --git a/net-misc/redir/files/redir-2.2.1-include.patch b/net-misc/redir/files/redir-2.2.1-include.patch
new file mode 100644
index 000000000000..5fea475d31a0
--- /dev/null
+++ b/net-misc/redir/files/redir-2.2.1-include.patch
@@ -0,0 +1,10 @@
+--- redir-2.2.1/redir.c.orig 1999-12-26 21:50:06.000000000 +0100
++++ redir-2.2.1/redir.c 2009-10-23 15:01:26.000000000 +0200
+@@ -78,6 +78,7 @@
+ #include <arpa/inet.h>
+ #include <netdb.h>
+ #include <errno.h>
++#include <time.h>
+
+ #ifdef USE_TCP_WRAPPERS
+ #include <tcpd.h>
diff --git a/net-misc/redir/redir-2.2.1.ebuild b/net-misc/redir/redir-2.2.1.ebuild
index 98577aac662a..b35baccca32a 100644
--- a/net-misc/redir/redir-2.2.1.ebuild
+++ b/net-misc/redir/redir-2.2.1.ebuild
@@ -1,8 +1,10 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/redir/redir-2.2.1.ebuild,v 1.8 2009/05/30 02:00:17 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/redir/redir-2.2.1.ebuild,v 1.9 2009/10/23 13:05:18 jer Exp $
-inherit toolchain-funcs
+EAPI="2"
+
+inherit eutils toolchain-funcs
DESCRIPTION="Redir is a port redirector."
HOMEPAGE="http://sammy.net/~sammy/hacks/"
@@ -16,8 +18,16 @@ IUSE=""
DEPEND=""
RDEPEND=""
+src_configure() {
+ epatch "${FILESDIR}/${P}-include.patch"
+}
+
src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" || \
+ die "emake failed"
}
src_install() {