summaryrefslogtreecommitdiff
path: root/package/libupnp/patches/libupnp-1.2.1a-gcc4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/libupnp/patches/libupnp-1.2.1a-gcc4.patch')
-rw-r--r--package/libupnp/patches/libupnp-1.2.1a-gcc4.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/libupnp/patches/libupnp-1.2.1a-gcc4.patch b/package/libupnp/patches/libupnp-1.2.1a-gcc4.patch
new file mode 100644
index 0000000000..2ea3f88052
--- /dev/null
+++ b/package/libupnp/patches/libupnp-1.2.1a-gcc4.patch
@@ -0,0 +1,17 @@
+Index: libupnp-1.2.1a/ixml/src/element.c
+===================================================================
+--- libupnp-1.2.1a.orig/ixml/src/element.c
++++ libupnp-1.2.1a/ixml/src/element.c
+@@ -454,9 +454,9 @@ ixmlElement_removeAttributeNode( IN IXML
+ element->n.firstAttr = nextSib;
+ }
+
+- ( IXML_Attr * ) attrNode->parentNode = NULL;
+- ( IXML_Attr * ) attrNode->prevSibling = NULL;
+- ( IXML_Attr * ) attrNode->nextSibling = NULL;
++ attrNode->parentNode = NULL;
++ attrNode->prevSibling = NULL;
++ attrNode->nextSibling = NULL;
+ *rtAttr = ( IXML_Attr * ) attrNode;
+ return IXML_SUCCESS;
+