public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/files/, net-libs/libupnp/
@ 2020-01-29 17:47 99% Ian Whyman
  0 siblings, 0 replies; 1+ results
From: Ian Whyman @ 2020-01-29 17:47 UTC (permalink / raw
  To: gentoo-commits

commit:     dc3f7541667cf0ab1cd1b2f445042d4268f4d08d
Author:     Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 29 17:45:01 2020 +0000
Commit:     Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
CommitDate: Wed Jan 29 17:45:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc3f7541

net-libs/libupnp: 1.12.0: Fix C++ compat

Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org>

 .../libupnp/files/libupnp-1.12.0-cxx-compat.patch  | 33 ++++++++++++++++++++++
 ...upnp-1.12.0.ebuild => libupnp-1.12.0-r1.ebuild} |  1 +
 2 files changed, 34 insertions(+)

diff --git a/net-libs/libupnp/files/libupnp-1.12.0-cxx-compat.patch b/net-libs/libupnp/files/libupnp-1.12.0-cxx-compat.patch
new file mode 100644
index 00000000000..cbb844952be
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.12.0-cxx-compat.patch
@@ -0,0 +1,33 @@
+From 5a8e93f1a57cce5cead5c8c566a75f7c7c294c97 Mon Sep 17 00:00:00 2001
+From: Ian Whyman <v00d00@v00d00.net>
+Date: Mon, 27 Jan 2020 21:46:47 +0000
+Subject: [PATCH] List: Add extern C for C++ users
+
+---
+ upnp/inc/list.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/upnp/inc/list.h b/upnp/inc/list.h
+index 214a53e5..0fbe7efc 100644
+--- a/upnp/inc/list.h
++++ b/upnp/inc/list.h
+@@ -40,6 +40,10 @@
+ 
+ #include "UpnpGlobal.h"
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
++
+ /** List anchor structure. This should be the *first* entry in list
+  *  member objects, except if you want to do member offset arithmetic
+  *  instead of simple casts (look up "containerof"). The list code itself 
+@@ -71,4 +75,8 @@ EXPORT_SPEC UpnpListIter UpnpListInsert(UpnpListHead *list, UpnpListIter pos,
+ /** Erase element at pos, return next one, or end()*/
+ EXPORT_SPEC UpnpListIter UpnpListErase(UpnpListHead *list, UpnpListIter pos);
+ 
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
++
+ #endif /* _UPNPLISTH_ */

diff --git a/net-libs/libupnp/libupnp-1.12.0.ebuild b/net-libs/libupnp/libupnp-1.12.0-r1.ebuild
similarity index 96%
rename from net-libs/libupnp/libupnp-1.12.0.ebuild
rename to net-libs/libupnp/libupnp-1.12.0-r1.ebuild
index 14fc805526f..70a82fc72df 100644
--- a/net-libs/libupnp/libupnp-1.12.0.ebuild
+++ b/net-libs/libupnp/libupnp-1.12.0-r1.ebuild
@@ -18,6 +18,7 @@ DOCS="ChangeLog"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.6.21-cflags.patch
+	"${FILESDIR}"/${P}-cxx-compat.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-01-29 17:47 99% [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/files/, net-libs/libupnp/ Ian Whyman

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