summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-09-05 06:04:40 +0000
committerAlin Năstac <mrness@gentoo.org>2009-09-05 06:04:40 +0000
commit07c7257c32d9a48ff051355802589704ef6278e0 (patch)
treee822e376cbcac38154ccb4417502f59319d6d4e7 /net-dialup
parentBump chappa patchset to patchlevel 52 (#283316) (diff)
downloadgentoo-2-07c7257c32d9a48ff051355802589704ef6278e0.tar.gz
gentoo-2-07c7257c32d9a48ff051355802589704ef6278e0.tar.bz2
gentoo-2-07c7257c32d9a48ff051355802589704ef6278e0.zip
Fix compile error when built without threads support (#283475).
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/freeradius/ChangeLog6
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.6-nothreads.patch13
-rw-r--r--net-dialup/freeradius/freeradius-2.1.6.ebuild3
3 files changed, 20 insertions, 2 deletions
diff --git a/net-dialup/freeradius/ChangeLog b/net-dialup/freeradius/ChangeLog
index 08081770a228..159594af08a7 100644
--- a/net-dialup/freeradius/ChangeLog
+++ b/net-dialup/freeradius/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-dialup/freeradius
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.89 2009/08/23 10:38:04 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.90 2009/09/05 06:04:40 mrness Exp $
+
+ 05 Sep 2009; Alin Năstac <mrness@gentoo.org>
+ +files/freeradius-2.1.6-nothreads.patch, freeradius-2.1.6.ebuild:
+ Fix compile error when built without threads support (#283475).
*freeradius-2.1.6 (23 Aug 2009)
diff --git a/net-dialup/freeradius/files/freeradius-2.1.6-nothreads.patch b/net-dialup/freeradius/files/freeradius-2.1.6-nothreads.patch
new file mode 100644
index 000000000000..41a41c8d6e21
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.6-nothreads.patch
@@ -0,0 +1,13 @@
+diff -Nru freeradius-server-2.1.6.orig/src/main/event.c freeradius-server-2.1.6/src/main/event.c
+--- freeradius-server-2.1.6.orig/src/main/event.c 2009-05-18 13:13:55.000000000 +0200
++++ freeradius-server-2.1.6/src/main/event.c 2009-09-05 07:52:42.000000000 +0200
+@@ -1667,7 +1667,9 @@
+ */
+ request->num_proxied_requests = 1;
+ request->num_proxied_responses = 0;
++#ifdef HAVE_PTHREAD_H
+ request->child_pid = NO_SUCH_CHILD_PID;
++#endif
+
+ update_event_timestamp(request->proxy, request->proxy_when.tv_sec);
+
diff --git a/net-dialup/freeradius/freeradius-2.1.6.ebuild b/net-dialup/freeradius/freeradius-2.1.6.ebuild
index 3e0eb9f90c62..9699e122217b 100644
--- a/net-dialup/freeradius/freeradius-2.1.6.ebuild
+++ b/net-dialup/freeradius/freeradius-2.1.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-2.1.6.ebuild,v 1.1 2009/08/23 10:38:04 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-2.1.6.ebuild,v 1.2 2009/09/05 06:04:40 mrness Exp $
EAPI="2"
@@ -50,6 +50,7 @@ src_prepare() {
epatch "${FILESDIR}/${P}-ssl.patch"
epatch "${FILESDIR}/${P}-qafixes.patch"
epatch "${FILESDIR}/${P}-pkglibdir.patch"
+ epatch "${FILESDIR}/${P}-nothreads.patch"
# kill modules we don't use
if ! use ssl; then