aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-07-01 17:46:16 +0800
committerkevlo <kevlo@FreeBSD.org>2011-07-01 17:46:16 +0800
commit01c3e28182ed74ce04f2202b3d583ed849d53aa4 (patch)
treedfbb9957813e6871cfc6185c6ce0059bbab80427
parent9a1b9caca90f95041542e3e51736efff7b404e81 (diff)
downloadfreebsd-ports-gnome-01c3e28182ed74ce04f2202b3d583ed849d53aa4.tar.gz
freebsd-ports-gnome-01c3e28182ed74ce04f2202b3d583ed849d53aa4.tar.zst
freebsd-ports-gnome-01c3e28182ed74ce04f2202b3d583ed849d53aa4.zip
Add missing patches that were missed by the previous commit
-rw-r--r--devel/iniparser/files/patch-dictionary.c24
-rw-r--r--devel/iniparser/files/patch-iniparser.h22
2 files changed, 46 insertions, 0 deletions
diff --git a/devel/iniparser/files/patch-dictionary.c b/devel/iniparser/files/patch-dictionary.c
new file mode 100644
index 000000000000..aaac23a8d7ae
--- /dev/null
+++ b/devel/iniparser/files/patch-dictionary.c
@@ -0,0 +1,24 @@
+--- src/dictionary.c.orig 2011-07-01 17:03:46.000000000 +0800
++++ src/dictionary.c 2011-07-01 17:04:55.000000000 +0800
+@@ -39,6 +39,10 @@
+ Private functions
+ ---------------------------------------------------------------------------*/
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /* Doubles the allocated size associated to a pointer */
+ /* 'size' is the current allocated size. */
+ static void * mem_double(void * ptr, int size)
+@@ -401,5 +405,10 @@
+ dictionary_del(d);
+ return 0 ;
+ }
++
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
+ /* vim: set ts=4 et sw=4 tw=75 */
diff --git a/devel/iniparser/files/patch-iniparser.h b/devel/iniparser/files/patch-iniparser.h
new file mode 100644
index 000000000000..098c75aed9d7
--- /dev/null
+++ b/devel/iniparser/files/patch-iniparser.h
@@ -0,0 +1,22 @@
+--- src/iniparser.h.orig 2011-03-29 22:36:06.000000000 +0800
++++ src/iniparser.h 2011-07-01 17:36:39.000000000 +0800
+@@ -34,6 +34,10 @@
+
+ #include "dictionary.h"
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /*-------------------------------------------------------------------------*/
+ /**
+ @brief Get number of sections in a dictionary
+@@ -270,4 +274,8 @@
+ /*--------------------------------------------------------------------------*/
+ void iniparser_freedict(dictionary * d);
+
++#ifdef __cplusplus
++}
++#endif
++
+ #endif