summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-07 03:17:57 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-07 03:17:57 +0000
commit58afb4e0e4a57360416f9235e6ac6f3b45637d26 (patch)
tree697c88631ad34b34ef65d54bcee49b1f2770ba8e /games-misc
parentmasked games-action/bomberclone due to security issues (diff)
downloadgentoo-2-58afb4e0e4a57360416f9235e6ac6f3b45637d26.tar.gz
gentoo-2-58afb4e0e4a57360416f9235e6ac6f3b45637d26.tar.bz2
gentoo-2-58afb4e0e4a57360416f9235e6ac6f3b45637d26.zip
Mark C funcs as extern C #128348 by Honza.
(Portage version: 2.1.1_pre4)
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/bsd-games/ChangeLog6
-rw-r--r--games-misc/bsd-games/bsd-games-2.17-r2.ebuild3
-rw-r--r--games-misc/bsd-games/files/bsd-games-2.17-headers.patch16
3 files changed, 23 insertions, 2 deletions
diff --git a/games-misc/bsd-games/ChangeLog b/games-misc/bsd-games/ChangeLog
index ac36e7fe25b7..33dbbe49811a 100644
--- a/games-misc/bsd-games/ChangeLog
+++ b/games-misc/bsd-games/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-misc/bsd-games
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.26 2006/07/28 22:21:05 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.27 2006/08/07 03:17:56 vapier Exp $
+
+ 07 Aug 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/bsd-games-2.17-headers.patch, bsd-games-2.17-r2.ebuild:
+ Mark C funcs as extern C #128348 by Honza.
28 Jul 2006; <tupone@gentoo.org> bsd-games-2.17-r2.ebuild:
Fixing bug #104086, banner executable name collision, by Andrzej Zaborowski
diff --git a/games-misc/bsd-games/bsd-games-2.17-r2.ebuild b/games-misc/bsd-games/bsd-games-2.17-r2.ebuild
index aa31d061e945..f66ae8f7e5a3 100644
--- a/games-misc/bsd-games/bsd-games-2.17-r2.ebuild
+++ b/games-misc/bsd-games/bsd-games-2.17-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17-r2.ebuild,v 1.3 2006/07/28 22:21:05 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17-r2.ebuild,v 1.4 2006/08/07 03:17:56 vapier Exp $
inherit eutils games
@@ -36,6 +36,7 @@ src_unpack() {
epatch \
"${DISTDIR}"/bsdgames_${PV}-${DEB_PATCH_VER}.diff.gz \
"${FILESDIR}"/${P}-64bit.patch \
+ "${FILESDIR}"/${P}-headers.patch \
"${FILESDIR}"/${P}-gcc4.patch
sed -i \
diff --git a/games-misc/bsd-games/files/bsd-games-2.17-headers.patch b/games-misc/bsd-games/files/bsd-games-2.17-headers.patch
new file mode 100644
index 000000000000..953a5d35765a
--- /dev/null
+++ b/games-misc/bsd-games/files/bsd-games-2.17-headers.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/128348
+
+--- include/stdio.h
++++ include/stdio.h
+@@ -35,5 +35,11 @@
+ #include_next <stdio.h>
+
+ #ifndef HAVE_fgetln
++#ifdef __cplusplus
++extern "C" {
++#endif
+ extern char *fgetln(FILE *stream, size_t *len);
++#ifdef __cplusplus
++}
++#endif
+ #endif